TaskTracer: Difference between revisions

Jump to navigation Jump to search
1,003 bytes added ,  18 November 2014
→‎How to use Task Tracer: Add addition description about the use of GeckoProfiler.
No edit summary
(→‎How to use Task Tracer: Add addition description about the use of GeckoProfiler.)
Line 7: Line 7:
* Where it is dispatched from.
* Where it is dispatched from.


== How to use Task Tracer ==
== How to use TaskTracer ==
=== mozilla-central ===
=== mozilla-central ===
1. Build and flash (built-in)
1. Build and flash (built-in)
Line 19: Line 19:
  ./profile.sh start -f tasktracer
  ./profile.sh start -f tasktracer


3. Get result
You can still combine the "tasktracer" feature with other supported flags of "start" command. For example, <code> ./profile.sh start -f tasktracer,js,leaf -i 50</code> will start profiling on all processes with tasktracer and default features, and longer the sampling interval to 50 milliseconds.


3.1. Capture current result
Please note that because TaskTracer is design to record the correlation of tasks between threads and processes, enabling this feature will start profiling on all processes, which says, later commands such as <code>./profile.sh start -p aProcessName</code> will be invalid.
 
3. Get results
 
3.1. Capture current results


  ./profile.sh capture
  ./profile.sh capture


3.2. Get Task Tracer Converter
In additional to the original results of GeckoProfiler, turning on <code>-f tasktracer</code> should find a section of TaskTracer data inserted into each output files. The first recording period is from the time of <code>./profile.sh start</code> till the time of first <code>./profile.sh capture</code>, the next recording period is then from the time of this <code>capture</code> till the next <code>capture</code>...and so on.
 
3.2. Get TaskTracer Converter


  git clone https://github.com/ginayeh/task-tracer-converter -b v2.0
  git clone https://github.com/ginayeh/task-tracer-converter -b v2.0


3.3. Convert result
3.3. Convert results


  mv profile_*.txt task-tracer-converter/log/
  mv profile_*.txt task-tracer-converter/log/
Line 38: Line 44:


=== v1.3T ===
=== v1.3T ===
1. Get the source code of Task Tracer.
1. Get the source code of TaskTracer.


  git clone https://github.com/shellylin/gecko-dev/tree/tt-1.3t
  git clone https://github.com/shellylin/gecko-dev/tree/tt-1.3t
Confirmed users
220

edits

Navigation menu