On Tue, Jun 27, 2017 at 6:20 PM, Waldek Kozaczuk
wrote:
> I was wondering if it should be possible to generate so called "flame
> graphs" (https://medium.com/netflix-techblog/java-in-flames-e763b3d32166)
> on OSv to visualize its performance characteristic. I have a sense that it
> might not be that difficult but I am missing some hints. I might be all
> wrong as well :-)
>
> It looks like OSv comes with its own trace tool (
> https://github.com/cloudius-systems/osv/wiki/Trace-analysis-using-trace.py)
> that operates on tracefile but I am not sure if the format is in any way
> compatible with Linux perf tool.
>
It's not compatible, but it shouldn't be hard to write a trace.py command
which generates a .stacks file out of the samples tree, which can be then
understood by the FlameGraph tools.
I've done this for seastar's heap profiler:
https://github.com/scylladb/scylla/wiki/Seastar-heap-profiler#generating-flamegraphs
Code which generates the .stacks file:
https://github.com/scylladb/scylla/blob/master/scylla-gdb.py#L397
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.