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

Unified Diff: tools/telemetry/telemetry/inspector_timeline.py

Issue 11783028: [telemetry] Timeline.start should discard previously-recorded events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/inspector_timeline.py
diff --git a/tools/telemetry/telemetry/inspector_timeline.py b/tools/telemetry/telemetry/inspector_timeline.py
index 6b502fa450f9e24ec4720ea19c70b56ae16836b6..e0810c6e5959bebbd02b18a533384a72ed38ac64 100644
--- a/tools/telemetry/telemetry/inspector_timeline.py
+++ b/tools/telemetry/telemetry/inspector_timeline.py
@@ -63,7 +63,7 @@ class InspectorTimeline(object):
self._inspector_backend = inspector_backend
self._tab = tab
self._is_recording = False
- self._timeline_events = TimelineEvents()
+ self._timeline_events = None
@property
def timeline_events(self):
@@ -72,6 +72,7 @@ class InspectorTimeline(object):
def Start(self):
if self._is_recording:
return
+ self._timeline_events = TimelineEvents()
self._is_recording = True
self._inspector_backend.RegisterDomain('Timeline',
self._OnNotification, self._OnClose)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698