pg_flame
A flamegraph generator for Postgres EXPLAIN ANALYZE output
... plans and query executions, proving useful for debugging slow database queries. Pg_flame is an extension of that work for Postgres query plans. It generates a visual hierarchy of query plans. This visualization identifies the relative time of each part of a query plan.