android-methods-profiler icon indicating copy to clipboard operation
android-methods-profiler copied to clipboard

Is there a convenient way to convert .Trace format to perf.data file format?

Open IamHuskar opened this issue 1 year ago • 2 comments

If possible, there will be more visualization tools to analyze .trace file

IamHuskar avatar Feb 08 '24 08:02 IamHuskar

Hello! Could you please send me perf.data format specification? I didn't know about this format.

Grigory-Rylov avatar Feb 08 '24 09:02 Grigory-Rylov

I'm not very familiar with the perf.data format either. But you can simply get a perf.data file by running #perf record -g -a ./mainbinary under linux to get a perf.data file. If we can convert the android.trace file to perf-data format(or other format). we can do analysis using many existing visualization tools. like https://github.com/jlfwong/speedscope (which support js/ruby/go/python/rust trace file) https://github.com/KDAB/hotspot https://github.com/brendangregg/FlameGraph

maybe it's a stupid idea. XD

IamHuskar avatar Feb 08 '24 13:02 IamHuskar