diff options
author | Yi Kong <yikong@google.com> | 2024-01-16 15:11:44 +0900 |
---|---|---|
committer | Yi Kong <yikong@google.com> | 2024-01-16 15:12:47 +0900 |
commit | 32507a530f49c9d9d26cdd3fc149d46ba98d1848 (patch) | |
tree | 7ca8bfc6de36c062ed8a91de34e401df8f2eede7 /profcollectd | |
parent | 7bc1a57e41f5c0445ff9dcfe0a208054b6ed8dac (diff) | |
download | extras-32507a530f49c9d9d26cdd3fc149d46ba98d1848.tar.gz |
Fix build with logging_trace_provider
Update to the new interface signature.
Test: n/a
Change-Id: Iff45a5b484d95fd6942ebd1a563301308f71c6d4
Diffstat (limited to 'profcollectd')
-rw-r--r-- | profcollectd/libprofcollectd/logging_trace_provider.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/profcollectd/libprofcollectd/logging_trace_provider.rs b/profcollectd/libprofcollectd/logging_trace_provider.rs index d9fd35e9..72e1c0d2 100644 --- a/profcollectd/libprofcollectd/logging_trace_provider.rs +++ b/profcollectd/libprofcollectd/logging_trace_provider.rs @@ -36,7 +36,7 @@ impl TraceProvider for LoggingTraceProvider { true } - fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { + fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, _binary_filter: &str) { let trace_file = trace_provider::get_path(trace_dir, tag, LOGGING_TRACEFILE_EXTENSION); log::info!( @@ -47,12 +47,12 @@ impl TraceProvider for LoggingTraceProvider { ); } - fn process(&self, _trace_dir: &Path, _profile_dir: &Path) -> Result<()> { + fn process(&self, _trace_dir: &Path, _profile_dir: &Path, _binary_filter: &str) -> Result<()> { log::info!("Process event triggered"); Ok(()) } - fn set_log_file(&self, filename: &Path) {} + fn set_log_file(&self, _filename: &Path) {} fn reset_log_file(&self) {} } |