summaryrefslogtreecommitdiff
path: root/profcollectd/libprofcollectd/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'profcollectd/libprofcollectd/lib.rs')
-rw-r--r--profcollectd/libprofcollectd/lib.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/profcollectd/libprofcollectd/lib.rs b/profcollectd/libprofcollectd/lib.rs
index c6a4f2ff..4929da5c 100644
--- a/profcollectd/libprofcollectd/lib.rs
+++ b/profcollectd/libprofcollectd/lib.rs
@@ -83,9 +83,8 @@ pub fn process() -> Result<()> {
}
/// Process traces and report profile.
-pub fn report() -> Result<()> {
- get_profcollectd_service().report()?;
- Ok(())
+pub fn report() -> Result<String> {
+ Ok(get_profcollectd_service().report()?)
}
/// Inits logging for Android