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

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

Issue 2144153002: [DevTools] Remove CallUID from CPUProfileNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-profile-0-based
Patch Set: rebased tests Created 4 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @constructor 6 * @constructor
7 * @implements {WebInspector.Searchable} 7 * @implements {WebInspector.Searchable}
8 * @extends {WebInspector.ProfileView} 8 * @extends {WebInspector.ProfileView}
9 * @param {!WebInspector.SamplingHeapProfileHeader} profileHeader 9 * @param {!WebInspector.SamplingHeapProfileHeader} profileHeader
10 */ 10 */
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 /** 217 /**
218 * @constructor 218 * @constructor
219 * @extends {WebInspector.ProfileNode} 219 * @extends {WebInspector.ProfileNode}
220 * @param {!HeapProfilerAgent.SamplingHeapProfileNode} node 220 * @param {!HeapProfilerAgent.SamplingHeapProfileNode} node
221 */ 221 */
222 WebInspector.SamplingHeapProfileNode = function(node) 222 WebInspector.SamplingHeapProfileNode = function(node)
223 { 223 {
224 WebInspector.ProfileNode.call(this, node.functionName, node.scriptId, node.u rl, node.lineNumber, node.columnNumber); 224 WebInspector.ProfileNode.call(this, node.functionName, node.scriptId, node.u rl, node.lineNumber, node.columnNumber);
225 this.self = node.selfSize; 225 this.self = node.selfSize;
226 this.callUID = `${this.frame.functionName}@${this.frame.scriptId}:${this.fra me.lineNumber}`;
227 } 226 }
228 227
229 WebInspector.SamplingHeapProfileNode.prototype = { 228 WebInspector.SamplingHeapProfileNode.prototype = {
230 __proto__: WebInspector.ProfileNode.prototype 229 __proto__: WebInspector.ProfileNode.prototype
231 } 230 }
232 231
233 /** 232 /**
234 * @constructor 233 * @constructor
235 * @extends {WebInspector.ProfileTreeModel} 234 * @extends {WebInspector.ProfileTreeModel}
236 * @param {!HeapProfilerAgent.SamplingHeapProfile} profile 235 * @param {!HeapProfilerAgent.SamplingHeapProfile} profile
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total)); 422 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total));
424 var linkifier = new WebInspector.Linkifier(); 423 var linkifier = new WebInspector.Linkifier();
425 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrameForTime line(this._target, node.frame).textContent; 424 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrameForTime line(this._target, node.frame).textContent;
426 linkifier.dispose(); 425 linkifier.dispose();
427 pushEntryInfoRow(WebInspector.UIString("URL"), text); 426 pushEntryInfoRow(WebInspector.UIString("URL"), text);
428 return entryInfo; 427 return entryInfo;
429 }, 428 },
430 429
431 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype 430 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype
432 } 431 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698