summaryrefslogtreecommitdiff
path: root/chromium/third_party/trace-viewer/src/about_tracing.js
blob: b16bf21e67cc158beeec456a671c4a6801027525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2013 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.

'use strict';

base.require('about_tracing.profiling_view');
base.requireStylesheet('about_tracing');

base.exportTo('about_tracing', function() {
  window.profilingView = undefined;  // Made global for debugging purposes only.

  document.addEventListener('DOMContentLoaded', function() {
    window.profilingView = new about_tracing.ProfilingView();
    document.body.appendChild(profilingView);
  });

  return {};
});