Hacker News new | ask | show | jobs
by masukomi 997 days ago
this is very cool, but...where does one get the data to visualize? Is there a standard for flamegraph data structures?

There appears to be zero documentation on what it needs as input.

3 comments

> Stack samples can be captured using Linux perf_events, FreeBSD pmcstat (hwpmc), DTrace, SystemTap, and many other profilers. See the stackcollapse-* converters

https://github.com/brendangregg/FlameGraph

Yes, for now I didn't find any standard format of samples dump.

I already figure out how to integrate with golang's pprof, seems I need to work with other perf tools as well.

I am thinking about adding a flag like `--input-format=pprof` for different outputs.

from the README:

> Currently it only supports Golang's pprof dump, I am working on supporting more formats