| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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 $(function() { | |
| 6 // Read original data and plot. | |
| 7 // TODO(junjianx): Make file path an argument. | |
| 8 $.getJSON('data/sample.json', function(jsonData) { | |
| 9 // Create model. | |
| 10 var profiler = new Profiler(jsonData); | |
| 11 // Create views subscribing model events. | |
| 12 var graphView = new GraphView(profiler); | |
| 13 var dropdownView = new DropdownView(profiler); | |
| 14 var menuView = new MenuView(profiler); | |
| 15 | |
| 16 // initialize categories according to roots information. | |
| 17 profiler.reparse(); | |
| 18 }); | |
| 19 }); | |
| OLD | NEW |