mgartner / pg_flame Goto Github PK
View Code? Open in Web Editor NEWA flamegraph generator for Postgres EXPLAIN ANALYZE output.
License: Apache License 2.0
A flamegraph generator for Postgres EXPLAIN ANALYZE output.
License: Apache License 2.0
Due to the way the mod file is written, currently is not possible to import the code provided and generate graphs on demand, like on a web server or other similar applications.
The tool is excellent, and helps a lot when doing some analysis from time to time, but the possibility to include in third party applications would be appreciated, and the only change needed is the modification of one line in the mod file.
This looks nice and potentially very useful, congrats!
I've personally used the Postgres Explain Visualizer of @AlexTatiyants, whose code is hosted here https://github.com/AlexTatiyants/pev, in the past and found it very useful to grasp plans and reveal leads to improve queries or data models.
So as an idea, integrating your two solutions into one website could potentially make both even better and useful.
Cheers
I tried to install pg_flame
using the specified tap, but I got this error:
$ brew install mgartner/tap/pg_flame
==> Tapping mgartner/tap
Cloning into '/usr/local/Homebrew/Library/Taps/mgartner/homebrew-tap'...
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (4/4), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/mgartner/homebrew-tap/Formula/pg_flame.rb
pg_flame: wrong number of arguments (given 1, expected 0)
Error: Cannot tap mgartner/tap: invalid syntax in tap!
It would be much easier to use your absolutely awesome tool if you publish Docker images for every release into any public Docker registry (it doesn't really matter will it be hub.docker.com or quay.io), and provide links to it in the README, like this:
docker pull mgartner/pg_flame # or docker pull quay.io/mgartner/pg_flame
psql dbname -qAtc 'EXPLAIN (…) SELECT …' | docker run --rm -i mgartner/pg_flame > flamegraph.html
Flamegraphs are the best! Thank you for creating pg_flame!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.