Home | History | Annotate | Download | only in timeline
      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 
      6 class TimelineImporter(object):
      7   """Reads TraceData and populates timeline model with what it finds."""
      8   def __init__(self, model, trace_data, import_order):
      9     self._model = model
     10     self._trace_data = trace_data
     11     self.import_order = import_order
     12 
     13   @staticmethod
     14   def GetSupportedPart():
     15     raise NotImplementedError
     16 
     17   def ImportEvents(self):
     18     """Processes the event data in the wrapper and creates and adds
     19     new timeline events to the model"""
     20     raise NotImplementedError
     21 
     22   def FinalizeImport(self):
     23     """Called after all other importers for the model are run."""
     24     raise NotImplementedError
     25