| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 | 331 |
| 332 for (var i = 0; i < entries.length; ++i) { | 332 for (var i = 0; i < entries.length; ++i) { |
| 333 var entry = entries[i]; | 333 var entry = entries[i]; |
| 334 entryNodes[i] = entry.node; | 334 entryNodes[i] = entry.node; |
| 335 entryLevels[i] = entry.depth; | 335 entryLevels[i] = entry.depth; |
| 336 entryTotalTimes[i] = entry.duration; | 336 entryTotalTimes[i] = entry.duration; |
| 337 entryStartTimes[i] = entry.startTime; | 337 entryStartTimes[i] = entry.startTime; |
| 338 entrySelfTimes[i] = entry.selfTime; | 338 entrySelfTimes[i] = entry.selfTime; |
| 339 } | 339 } |
| 340 | 340 |
| 341 this._maxStackDepth = maxDepth; | 341 this._maxStackDepth = maxDepth + 1; |
| 342 | 342 |
| 343 this._timelineData = new PerfUI.FlameChart.TimelineData(entryLevels, entryTo
talTimes, entryStartTimes, null); | 343 this._timelineData = new PerfUI.FlameChart.TimelineData(entryLevels, entryTo
talTimes, entryStartTimes, null); |
| 344 | 344 |
| 345 /** @type {!Array<!SDK.CPUProfileNode>} */ | 345 /** @type {!Array<!SDK.CPUProfileNode>} */ |
| 346 this._entryNodes = entryNodes; | 346 this._entryNodes = entryNodes; |
| 347 this._entrySelfTimes = entrySelfTimes; | 347 this._entrySelfTimes = entrySelfTimes; |
| 348 | 348 |
| 349 return this._timelineData; | 349 return this._timelineData; |
| 350 } | 350 } |
| 351 | 351 |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 * @param {!SDK.CPUProfileNode} node | 411 * @param {!SDK.CPUProfileNode} node |
| 412 */ | 412 */ |
| 413 constructor(depth, duration, startTime, selfTime, node) { | 413 constructor(depth, duration, startTime, selfTime, node) { |
| 414 this.depth = depth; | 414 this.depth = depth; |
| 415 this.duration = duration; | 415 this.duration = duration; |
| 416 this.startTime = startTime; | 416 this.startTime = startTime; |
| 417 this.selfTime = selfTime; | 417 this.selfTime = selfTime; |
| 418 this.node = node; | 418 this.node = node; |
| 419 } | 419 } |
| 420 }; | 420 }; |
| OLD | NEW |