Grigory-Rylov / android-methods-profiler

Yet another Android Profiler for AOSP .trace files
Apache License 2.0
265 stars 15 forks source link

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

Open IamHuskar opened 8 months ago

IamHuskar commented 8 months ago

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

Grigory-Rylov commented 8 months ago

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

IamHuskar commented 8 months ago

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