diff options
author | Yabin Cui <yabinc@google.com> | 2023-05-11 14:28:57 -0700 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2023-05-11 15:06:37 -0700 |
commit | 1a2601f23f3b60901bbc5f4577a84469ab27d751 (patch) | |
tree | f49fbd5138ef5c6d1426686422d32e86f34e51bf /profcollectd/libprofcollectd/service.rs | |
parent | 477dbe7718d685e2e7300070142a7dfb256fab38 (diff) | |
download | extras-1a2601f23f3b60901bbc5f4577a84469ab27d751.tar.gz |
profcollectd: Put usage setting in the report zip file
Bug: 282060259
Test: run am broadcast -a com.android.server.profcollect.UPLOAD_PROFILES
Change-Id: I7ea32d6b840ce99f3290a725d095e960b2870b77
Diffstat (limited to 'profcollectd/libprofcollectd/service.rs')
-rw-r--r-- | profcollectd/libprofcollectd/service.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/profcollectd/libprofcollectd/service.rs b/profcollectd/libprofcollectd/service.rs index 87c3b3cf..3188888f 100644 --- a/profcollectd/libprofcollectd/service.rs +++ b/profcollectd/libprofcollectd/service.rs @@ -79,11 +79,11 @@ impl IProfCollectd for ProfcollectdBinderService { .context("Failed to process profiles.") .map_err(err_to_binder_status) } - fn report(&self) -> BinderResult<String> { + fn report(&self, usage_setting: i32) -> BinderResult<String> { self.process()?; let lock = &mut *self.lock(); - pack_report(&PROFILE_OUTPUT_DIR, &REPORT_OUTPUT_DIR, &lock.config) + pack_report(&PROFILE_OUTPUT_DIR, &REPORT_OUTPUT_DIR, &lock.config, usage_setting) .context("Failed to create profile report.") .map_err(err_to_binder_status) } |