Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/CPUProfileView.js

Issue 2796303008: DevTools: do not clip CPU profile overview when stack depth > 5 (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 };
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698