davidmarkclements / 0x

🔥 single-command flamegraph profiling 🔥
MIT License
3.23k stars 106 forks source link

Disable default alphabetical sorting in flamegraph #206

Closed sokra closed 5 years ago

sokra commented 5 years ago

I figured the entries are in a weird order. Seem like d3-fg sorts nodes by default by name. This doesn't make sense for 0x as node are already in correct (time) order.

davidmarkclements commented 5 years ago

Flame graphs are an aggregate of samples, there is no time axis (that’s flame charts). Alphabetically sorting is the norm (see http://www.brendangregg.com/flamegraphs.html)