Confirmed users
346
edits
(→TODO) |
(Update to newest) |
||
| Line 8: | Line 8: | ||
== How to use Task Tracer == | == How to use Task Tracer == | ||
=== mozilla-central === | |||
1. Build and flash (built-in) | |||
cd B2G | |||
export MOZ_TASK_TRACER=1; ./build.sh gecko | |||
./flash.sh gecko | |||
2. Start profiling | |||
./profile.sh start -f tasktracer | |||
3. Get result | |||
3.1. Capture current result | |||
./profile.sh capture | |||
3.2. Get Task Tracer Converter | |||
git clone https://github.com/ginayeh/task-tracer-converter -b v2.0 | |||
3.3. Convert result | |||
mv profile_*.txt task-tracer-converter/log/ | |||
cd task-tracer-converter/ | |||
./tasktracer.sh get_mmaps | |||
./task_tracer_converter.py -sp $B2G/objdir/dist/bin/libxul.so \ | |||
-np $B2G/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/bin/nm | |||
=== v1.3T === | |||
1. Get the source code of Task Tracer. | 1. Get the source code of Task Tracer. | ||
git clone https://github.com/shellylin/gecko-dev/tree/tt-1.3t | git clone https://github.com/shellylin/gecko-dev/tree/tt-1.3t | ||
2. Build and flash to a real device. | 2. Build and flash to a real device. | ||