68b8383d76a7a18bdaee13949cc66ca012cc3dee |
|
20-Jul-2017 |
Yabin Cui <yabinc@google.com> |
simpleperf: support tracing offcpu time. 1. Add --trace-offcpu option in record command, to record the callstack when a thread is scheduled off cpu. 2. Change the report command to report time spent not running on cpu when --trace-offcpu option is used for recording. 3. Add related unittests and runtests. Bug: http://b/37572306 Test: run simpleperf_unit_test. Change-Id: Ia50cc39c8dde0c8fb1b1facbcb26bbd0a7ab1351
/system/extras/simpleperf/runtest/run_and_sleep.cpp
|