| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @param {!ProfilerAgent.CPUProfile} profile | 8 * @param {!ProfilerAgent.CPUProfile} profile |
| 9 */ | 9 */ |
| 10 WebInspector.CPUProfileDataModel = function(profile) | 10 WebInspector.CPUProfileDataModel = function(profile) |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 279 |
| 280 for (var node = idToNode[prevId]; node.parent; node = node.parent) { | 280 for (var node = idToNode[prevId]; node.parent; node = node.parent) { |
| 281 var start = stackStartTimes[stackTop]; | 281 var start = stackStartTimes[stackTop]; |
| 282 var duration = sampleTime - start; | 282 var duration = sampleTime - start; |
| 283 stackChildrenDuration[stackTop - 1] += duration; | 283 stackChildrenDuration[stackTop - 1] += duration; |
| 284 closeFrameCallback(node.depth, node, start, duration, duration - sta
ckChildrenDuration[stackTop]); | 284 closeFrameCallback(node.depth, node, start, duration, duration - sta
ckChildrenDuration[stackTop]); |
| 285 --stackTop; | 285 --stackTop; |
| 286 } | 286 } |
| 287 } | 287 } |
| 288 } | 288 } |
| OLD | NEW |