https://wiki.mozilla.org/FirefoxOS/Performance/Profiling
- 打开 systrace, 开启MOZ_USE_SYSTRACE
gecko/tools/profiler/GeckoProfilerImpl.h
#define MOZ_USE_SYSTRACE true
- 抓trace命令,抓取10S,默认5S
systrace工具在android/sdk/platform-tools下面
./systrace.py sched freq idle am wm gfx view sync binder_driver irq workq input -b 96000
- Load trace
使用Chrome->chrome://tracing/,在这里load mynewtrace.html.