commit | 68b8383d76a7a18bdaee13949cc66ca012cc3dee | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Wed Jul 19 17:54:57 2017 -0700 |
committer | Yabin Cui <yabinc@google.com> | Fri Jul 21 15:36:56 2017 -0700 |
tree | f6953d1e94e45b61cdfbf3805169cc223b6c7cbb | |
parent | 87fcb8c6c18fa934f34b0af5f2f812076c90fabf [diff] |
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