blob: 90ff5ac61e54af16db763ec366941b91791a6f80 [file] [log] [blame]
# Copyright 2014 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.
class TimelineImporter(object):
"""Reads trace data and populates timeline model with what it finds."""
def __init__(self, model, trace_data):
self._model = model
self._trace_data = trace_data
@staticmethod
def GetSupportedPart():
raise NotImplementedError
def ImportEvents(self):
"""Processes the event data in the wrapper and creates and adds
new timeline events to the model"""
raise NotImplementedError
def FinalizeImport(self):
"""Called after all other importers for the model are run."""
raise NotImplementedError