3 Copyright (c) 2013 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
7 <link rel="import" href="/base.html">
12 * @fileoverview Base class for trace data importers.
14 tv.exportTo('tracing.importer', function() {
15 function Importer() { }
17 Importer.prototype = {
18 __proto__: Object.prototype,
21 * Called by the Model to check whether the importer type stores the actual
22 * trace data or just holds it as container for further extraction.
24 isTraceDataContainer: function() {
29 * Called by the Model to extract one or more subtraces from the event data.
31 extractSubtraces: function() {
36 * Called to import events into the Model.
38 importEvents: function() {
42 * Called to import sample data into the Model.
44 importSampleData: function() {
48 * Called by the Model after all other importers have imported their
51 finalizeImport: function() {
55 * Called by the Model to join references between objects, after final
56 * model bounds have been computed.
58 joinRefs: function() {