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

Side by Side Diff: tools/telemetry/telemetry/timeline/empty_timeline_data_importer.py

Issue 805463002: Implement ubertracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merg Created 5 years, 12 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 unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 from telemetry.timeline.timeline_data import TimelineData
6
7
8 class EmptyTimelineDataImporter(object):
9 """Imports empty TimlineData objects."""
10 def __init__(self, model, timeline_data, import_priority=0):
11 pass
12
13 @staticmethod
14 def CanImport(timeline_data):
15 if not isinstance(timeline_data, TimelineData):
16 return False
17 event_data = timeline_data.EventData()
18 if isinstance(event_data, list):
19 return len(event_data) == 0
20 elif isinstance(event_data, basestring):
21 return len(event_data) == 0
22 return False
23
24 def ImportEvents(self):
25 pass
26
27 def FinalizeImport(self):
28 pass
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698