commit | 09c85716aed7fda4fb2b8b02039d0a098d2d4fae | [log] [tgz] |
---|---|---|
author | Yabin Cui <yabinc@google.com> | Thu Nov 18 14:36:06 2021 -0800 |
committer | Yabin Cui <yabinc@google.com> | Fri Nov 19 13:10:42 2021 -0800 |
tree | 9c413e27dcead06faa7144c028876982be747a64 | |
parent | 404949a54acf5f386f88ad9db7e09673a7d2f185 [diff] |
simpleperf: add context_switch msg type in report_sample output. When --trace-offcpu is used, simpleperf keeps context switch records in perf.data, to help calculate off-cpu time period. This CL further exports that info to cmd_report_sample.proto, in context_switch msg type. Also add trace_offcpu in meta_info msg, to explicitly mark if a profile is recorded with --trace-offcpu. Bug: 38383695 Test: run simpleperf_unit_test Change-Id: I10de23f883e8df3ff1380046cafc2daee658ca4e