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 5class TimelineData(object): 6 """ Subclasses of TimelineData carry timeline data from a source 7 (e.g. tracing, profiler, etc.) to the corresponding timeline importer. 8 """ 9 def Serialize(self, f): 10 """Serializes the event data to a file-like object""" 11 pass 12 13 def EventData(self): 14 """Return the event data in a format that the corresponding timeline 15 importer understands""" 16 pass 17