OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 */ | 48 */ |
49 WebInspector.FlameChart = function(dataProvider) | 49 WebInspector.FlameChart = function(dataProvider) |
50 { | 50 { |
51 WebInspector.VBox.call(this); | 51 WebInspector.VBox.call(this); |
52 this.registerRequiredCSS("flameChart.css"); | 52 this.registerRequiredCSS("flameChart.css"); |
53 this.element.id = "cpu-flame-chart"; | 53 this.element.id = "cpu-flame-chart"; |
54 | 54 |
55 this._overviewPane = new WebInspector.FlameChart.OverviewPane(dataProvider); | 55 this._overviewPane = new WebInspector.FlameChart.OverviewPane(dataProvider); |
56 this._overviewPane.show(this.element); | 56 this._overviewPane.show(this.element); |
57 | 57 |
58 this._mainPane = new WebInspector.FlameChart.MainPane(dataProvider, this._ov
erviewPane, false, false); | 58 this._mainPane = new WebInspector.FlameChart.MainPane(dataProvider, this._ov
erviewPane, true, false); |
59 this._mainPane.show(this.element); | 59 this._mainPane.show(this.element); |
60 this._mainPane.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); | 60 this._mainPane.addEventListener(WebInspector.FlameChart.Events.EntrySelected
, this._onEntrySelected, this); |
61 this._overviewPane._overviewGrid.addEventListener(WebInspector.OverviewGrid.
Events.WindowChanged, this._onWindowChanged, this); | 61 this._overviewPane._overviewGrid.addEventListener(WebInspector.OverviewGrid.
Events.WindowChanged, this._onWindowChanged, this); |
62 } | 62 } |
63 | 63 |
64 WebInspector.FlameChart.DividersBarHeight = 20; | 64 WebInspector.FlameChart.DividersBarHeight = 20; |
65 | 65 |
66 WebInspector.FlameChart.prototype = { | 66 WebInspector.FlameChart.prototype = { |
67 /** | 67 /** |
68 * @param {!WebInspector.Event} event | 68 * @param {!WebInspector.Event} event |
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1121 reset: function() | 1121 reset: function() |
1122 { | 1122 { |
1123 this._highlightedEntryIndex = -1; | 1123 this._highlightedEntryIndex = -1; |
1124 this._selectedEntryIndex = -1; | 1124 this._selectedEntryIndex = -1; |
1125 this._textWidth = {}; | 1125 this._textWidth = {}; |
1126 this.update(); | 1126 this.update(); |
1127 }, | 1127 }, |
1128 | 1128 |
1129 __proto__: WebInspector.VBox.prototype | 1129 __proto__: WebInspector.VBox.prototype |
1130 } | 1130 } |
OLD | NEW |