diff options
author | Yabin Cui <yabinc@google.com> | 2021-03-23 15:51:08 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2021-03-30 11:41:54 -0700 |
commit | 4abcd878267d71b05e5c8e58d026c47ffed83488 (patch) | |
tree | c7f52f00dfdad1aba8e2dde3172021153abfb2f0 /profcollectd | |
parent | 16f41ffde6535be1663d628cc8e25666b2a7af97 (diff) | |
download | extras-4abcd878267d71b05e5c8e58d026c47ffed83488.tar.gz |
simpleperf_profcollect: add option for recording scope.
And record etm for both kernel and userspace by default.
Bug: 183135316
Test: run profcollectd
Change-Id: I91ea3a20efbcdf30df33d9280a8f15d25fa40f84
Diffstat (limited to 'profcollectd')
-rw-r--r-- | profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs b/profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs index c4b9db76..2038a5be 100644 --- a/profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs +++ b/profcollectd/libprofcollectd/simpleperf_etm_trace_provider.rs @@ -39,7 +39,11 @@ impl TraceProvider for SimpleperfEtmTraceProvider { trace_file.push(trace_provider::construct_file_name(tag)); trace_file.set_extension(ETM_TRACEFILE_EXTENSION); - simpleperf_profcollect::record(&trace_file, sampling_period) + simpleperf_profcollect::record( + &trace_file, + sampling_period, + simpleperf_profcollect::RecordScope::BOTH, + ); } fn process(&self, trace_dir: &Path, profile_dir: &Path) -> Result<()> { |