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

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

Issue 12278015: [Telemetry] Reorganize everything. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-add shebangs. Created 7 years, 10 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/chrome/inspector_timeline.py
diff --git a/tools/telemetry/telemetry/inspector_timeline.py b/tools/telemetry/telemetry/core/chrome/inspector_timeline.py
similarity index 94%
rename from tools/telemetry/telemetry/inspector_timeline.py
rename to tools/telemetry/telemetry/core/chrome/inspector_timeline.py
index 633aefced78bd81ffa1f7cd9825e41f6f7c41182..8fc7c723cc3d04c5c7cbec491635e330919b2e6f 100644
--- a/tools/telemetry/telemetry/inspector_timeline.py
+++ b/tools/telemetry/telemetry/core/chrome/inspector_timeline.py
@@ -1,8 +1,8 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-from telemetry.timeline_event import TimelineEvent
-from telemetry.timeline_model import TimelineModel
+from telemetry.core.chrome import timeline_event
+from telemetry.core.chrome import timeline_model
class TabBackendException(Exception):
pass
@@ -33,7 +33,7 @@ class InspectorTimeline(object):
if self._is_recording:
return
self._is_recording = True
- self._timeline_model = TimelineModel()
+ self._timeline_model = timeline_model.TimelineModel()
self._inspector_backend.RegisterDomain('Timeline',
self._OnNotification, self._OnClose)
req = {'method': 'Timeline.start'}
@@ -96,7 +96,7 @@ class InspectorTimeline(object):
args[x] = raw_inspector_event[x]
if len(args) == 0:
args = None
- newly_created_event = TimelineEvent(
+ newly_created_event = timeline_event.TimelineEvent(
name=raw_inspector_event['type'],
start_time_ms=raw_inspector_event['startTime'],
duration_ms=(raw_inspector_event['endTime'] -

Powered by Google App Engine
This is Rietveld 408576698