aboutsummaryrefslogtreecommitdiff
path: root/include/perfetto/tracing/tracing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/perfetto/tracing/tracing.h')
-rw-r--r--include/perfetto/tracing/tracing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/perfetto/tracing/tracing.h b/include/perfetto/tracing/tracing.h
index 8a688f27f..9aae9e8fe 100644
--- a/include/perfetto/tracing/tracing.h
+++ b/include/perfetto/tracing/tracing.h
@@ -177,6 +177,11 @@ class PERFETTO_EXPORT Tracing {
static std::unique_ptr<TracingSession> NewTrace(
BackendType = kUnspecifiedBackend);
+ // Uninitialize Perfetto. Only exposed for testing scenarios where it can be
+ // guaranteed that no tracing sessions or other operations are happening when
+ // this call is made.
+ static void ResetForTesting();
+
private:
static void InitializeInternal(const TracingInitArgs&);