OLD | NEW |
1 /** | 1 /** |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 /** | 113 /** |
114 * @return {?WebInspector.FlameChart.TimelineData} | 114 * @return {?WebInspector.FlameChart.TimelineData} |
115 */ | 115 */ |
116 _calculateTimelineData: function() | 116 _calculateTimelineData: function() |
117 { | 117 { |
118 /** | 118 /** |
119 * @constructor | 119 * @constructor |
120 * @param {number} depth | 120 * @param {number} depth |
121 * @param {number} duration | 121 * @param {number} duration |
122 * @param {number} startTime | 122 * @param {number} startTime |
123 * @param {!Object} node | 123 * @param {number} selfTime |
| 124 * @param {!ProfilerAgent.CPUProfileNode} node |
124 */ | 125 */ |
125 function ChartEntry(depth, duration, startTime, selfTime, node) | 126 function ChartEntry(depth, duration, startTime, selfTime, node) |
126 { | 127 { |
127 this.depth = depth; | 128 this.depth = depth; |
128 this.duration = duration; | 129 this.duration = duration; |
129 this.startTime = startTime; | 130 this.startTime = startTime; |
| 131 this.selfTime = selfTime; |
130 this.node = node; | 132 this.node = node; |
131 this.selfTime = selfTime; | |
132 } | 133 } |
133 | 134 |
134 /** @type {!Array.<?ChartEntry>} */ | 135 /** @type {!Array.<?ChartEntry>} */ |
135 var entries = []; | 136 var entries = []; |
136 /** @type {!Array.<number>} */ | 137 /** @type {!Array.<number>} */ |
137 var stack = []; | 138 var stack = []; |
138 var maxDepth = 5; | 139 var maxDepth = 5; |
139 | 140 |
140 function onOpenFrame() | 141 function onOpenFrame() |
141 { | 142 { |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 { | 638 { |
638 var ratio = window.devicePixelRatio; | 639 var ratio = window.devicePixelRatio; |
639 this._overviewCanvas.width = width * ratio; | 640 this._overviewCanvas.width = width * ratio; |
640 this._overviewCanvas.height = height * ratio; | 641 this._overviewCanvas.height = height * ratio; |
641 this._overviewCanvas.style.width = width + "px"; | 642 this._overviewCanvas.style.width = width + "px"; |
642 this._overviewCanvas.style.height = height + "px"; | 643 this._overviewCanvas.style.height = height + "px"; |
643 }, | 644 }, |
644 | 645 |
645 __proto__: WebInspector.VBox.prototype | 646 __proto__: WebInspector.VBox.prototype |
646 } | 647 } |
OLD | NEW |