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

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

Issue 2560043005: DevTools: Remove unused variables. Disallow unused variables with eslint (Closed)
Patch Set: Created 4 years 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
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 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 maxDepth = Math.max(maxDepth, depth); 366 maxDepth = Math.max(maxDepth, depth);
367 } 367 }
368 this._cpuProfile.forEachFrame(onOpenFrame, onCloseFrame); 368 this._cpuProfile.forEachFrame(onOpenFrame, onCloseFrame);
369 369
370 /** @type {!Array<!SDK.CPUProfileNode>} */ 370 /** @type {!Array<!SDK.CPUProfileNode>} */
371 var entryNodes = new Array(entries.length); 371 var entryNodes = new Array(entries.length);
372 var entryLevels = new Uint16Array(entries.length); 372 var entryLevels = new Uint16Array(entries.length);
373 var entryTotalTimes = new Float32Array(entries.length); 373 var entryTotalTimes = new Float32Array(entries.length);
374 var entrySelfTimes = new Float32Array(entries.length); 374 var entrySelfTimes = new Float32Array(entries.length);
375 var entryStartTimes = new Float64Array(entries.length); 375 var entryStartTimes = new Float64Array(entries.length);
376 var minimumBoundary = this.minimumBoundary();
377 376
378 for (var i = 0; i < entries.length; ++i) { 377 for (var i = 0; i < entries.length; ++i) {
379 var entry = entries[i]; 378 var entry = entries[i];
380 entryNodes[i] = entry.node; 379 entryNodes[i] = entry.node;
381 entryLevels[i] = entry.depth; 380 entryLevels[i] = entry.depth;
382 entryTotalTimes[i] = entry.duration; 381 entryTotalTimes[i] = entry.duration;
383 entryStartTimes[i] = entry.startTime; 382 entryStartTimes[i] = entry.startTime;
384 entrySelfTimes[i] = entry.selfTime; 383 entrySelfTimes[i] = entry.selfTime;
385 } 384 }
386 385
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 * @param {!SDK.CPUProfileNode} node 456 * @param {!SDK.CPUProfileNode} node
458 */ 457 */
459 constructor(depth, duration, startTime, selfTime, node) { 458 constructor(depth, duration, startTime, selfTime, node) {
460 this.depth = depth; 459 this.depth = depth;
461 this.duration = duration; 460 this.duration = duration;
462 this.startTime = startTime; 461 this.startTime = startTime;
463 this.selfTime = selfTime; 462 this.selfTime = selfTime;
464 this.node = node; 463 this.node = node;
465 } 464 }
466 }; 465 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698