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/core/timeline/sample.py

Issue 19772005: [telemetry] Timeline model cleanups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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: tools/telemetry/telemetry/core/timeline/sample.py
diff --git a/tools/telemetry/telemetry/core/timeline/tracing/sample.py b/tools/telemetry/telemetry/core/timeline/sample.py
similarity index 77%
rename from tools/telemetry/telemetry/core/timeline/tracing/sample.py
rename to tools/telemetry/telemetry/core/timeline/sample.py
index 5f7f672d9d478593812a5da16b9c9df1b3d54550..36a3ab45b43c70b002bf24d14b154d4f5d33bfe3 100644
--- a/tools/telemetry/telemetry/core/timeline/tracing/sample.py
+++ b/tools/telemetry/telemetry/core/timeline/sample.py
@@ -13,7 +13,7 @@ class Sample(timeline_event.TimelineEvent):
All time units are stored in milliseconds.
'''
- def __init__(self, category, name, timestamp, args=None, parent=None):
+ def __init__(self, parent_thread, category, name, timestamp, args=None):
super(Sample, self).__init__(
- name, timestamp, 0, args=args, parent=parent)
- self.category = category
+ category, name, timestamp, 0, args=args)
+ self.parent_thread = parent_thread
« no previous file with comments | « tools/telemetry/telemetry/core/timeline/process.py ('k') | tools/telemetry/telemetry/core/timeline/slice.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698