Generates interactive flamegraphs from PostgreSQL EXPLAIN ANALYZE output to visualize query performance.
pg_flame is a command-line utility that generates interactive flamegraphs from PostgreSQL EXPLAIN ANALYZE output. It visualizes query execution plans as hierarchical flamegraphs, making it easier to identify which parts of a query consume the most time and pinpoint performance bottlenecks.
PostgreSQL database administrators, backend developers, and performance engineers who need to analyze and optimize slow SQL queries.
Developers choose pg_flame because it provides an intuitive, visual alternative to reading raw EXPLAIN ANALYZE text, speeding up query optimization by clearly highlighting time-consuming operations in an interactive format.
A flamegraph generator for Postgres EXPLAIN ANALYZE output.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Converts JSON query plans into interactive HTML flamegraphs, providing a clear, hierarchical view of execution time distribution, as shown in the demo linked in the README.
Works directly with PostgreSQL's EXPLAIN ANALYZE output in JSON format, enabling easy generation from standard psql commands, illustrated in the one-step example.
Offers multiple installation methods including Homebrew, pre-compiled binaries, Docker, and source build, ensuring cross-platform usability as detailed in the Installation section.
Reads from stdin and writes to stdout, allowing seamless integration into shell workflows and automation scripts, demonstrated in the usage examples.
Only accepts EXPLAIN output in JSON format, requiring users to always include FORMAT JSON in queries, which limits compatibility with other output types like TEXT or XML.
Does not execute queries or generate plans internally; relies entirely on external tools like psql for data capture, adding an extra step to the analysis workflow.
Focuses primarily on execution time distribution and may not adequately represent other performance metrics like memory usage or I/O unless explicitly included in the JSON input.