TaskTracer: Difference between revisions

302 bytes removed ,  18 November 2014
Update usage
(→‎Reference links: Remove the deprecated github link.)
(Update usage)
Line 15: Line 15:
  ./flash.sh gecko
  ./flash.sh gecko


'''2. Start profiling'''
'''2. Get TaskTracer Converter'''
 
https://bugzilla.mozilla.org/show_bug.cgi?id=1098217
 
Since Converter hasn't been landed yet, please manually download the patch and apply to your B2G repo.
 
'''3. Start profiling'''


  ./profile.sh start -f tasktracer
  ./profile.sh start -f tasktracer
Line 23: Line 29:
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.
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'''
'''4. Capture profiling results'''
 
'''3.1. Capture current results'''


  ./profile.sh capture
  ./profile.sh capture
Line 32: Line 36:


<code>./profile.sh stop</code> kills all processes and reboots b2g.
<code>./profile.sh stop</code> kills all processes and reboots b2g.
'''3.2. Get TaskTracer Converter'''
git clone https://github.com/ginayeh/task-tracer-converter -b v2.0
'''3.3. Convert results'''
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 ===
=== v1.3T ===
Line 109: Line 101:


== TODO ==
== TODO ==
* Integrate with built-in profiler
** Timestamp
** Start/Stop
* Thread pool
* Thread pool
* CpuTime
* CpuTime
Confirmed users
29

edits