top | item 46918741

Visualize MySQL query execution plans as interactive FlameGraphs

63 points| tanelpoder | 23 days ago |github.com

14 comments

order

ab_testing|18 days ago

Very cool but also more interesting is using Perl for any newish project.

It is hard to find maintainers or developers knowing Perl nowadays. Especially in data science related projects as python has been the de-facto tool for that field for some time now.

vgrippa|18 days ago

Indeed, but it was easier to implement the logic since original flamegraphs are in Perl.

hobs|19 days ago

Hah I did this for SQL Server execution graphs at one point (via profiler or extended events) and then I of course realized that anything that goes more than one or two events deep is just hellish SQL anyway, love to see the execution plan version that's much smarter.

bonesss|19 days ago

That feeling when your fancy graph points out the obvious, and ‘bad thing bad’ is the only takeaway.

Data science <pew pew>!

bmn__|18 days ago

If I were in vgrippa's place, I would have not produced flamegraphs, but treemaps. It's the far superior choice for visualising profiling/query plans and the like, no matter along which property one would measure.

Munging the mysql output into something that is delectable as input to kcachegrind is straight-forward. Screenshots: https://ddg.gg/?q=%21i+kcachegrind

vgrippa|18 days ago

Thanks for the suggestion. Actually I received some feedback to produce something like flamescope from netflix https://github.com/Netflix/flamescope

I will take a look at the treemaps and try to incorporate.

javier2|19 days ago

Thanks for sharing!

vgrippa|23 days ago

Thanks for posting!