Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(179)

Unified Diff: telemetry/telemetry/core/tracing_controller.py

Issue 1827323003: [Telemetry] Clear tracing state before browser start (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: fix test Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: telemetry/telemetry/core/tracing_controller.py
diff --git a/telemetry/telemetry/core/tracing_controller.py b/telemetry/telemetry/core/tracing_controller.py
index 8e81c9bccf854f15a5f3af9dcc6b171ecc3a6b50..463f95893a3d76a273e9053262ea8b82c376cf44 100644
--- a/telemetry/telemetry/core/tracing_controller.py
+++ b/telemetry/telemetry/core/tracing_controller.py
@@ -70,3 +70,7 @@ class TracingController(tracing_agent.TracingAgent):
record_controller_clocksync_marker_callback):
return self._tracing_controller_backend.RecordClockSyncMarker(
sync_id, record_controller_clocksync_marker_callback)
+
+ def ClearStateIfNeeded(self):
+ """Clear tracing state if needed."""
+ self._tracing_controller_backend.ClearStateIfNeeded()

Powered by Google App Engine
This is Rietveld 408576698