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

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

Issue 2145483002: [DevTools] make Runtime.CallFrame 0-based (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 return WebInspector.UIString("%.2f\u2009%%", value); 295 return WebInspector.UIString("%.2f\u2009%%", value);
296 }, 296 },
297 297
298 /** 298 /**
299 * @override 299 * @override
300 * @param {!WebInspector.ProfileDataGridNode} node 300 * @param {!WebInspector.ProfileDataGridNode} node
301 * @return {!Element} 301 * @return {!Element}
302 */ 302 */
303 linkifyNode: function(node) 303 linkifyNode: function(node)
304 { 304 {
305 var callFrame = node.profileNode.frame; 305 return this._profileView.linkifier().linkifyConsoleCallFrameForTimeline( this._profileView.target(), node.profileNode.frame, "profile-node-file");
306 return this._profileView.linkifier().linkifyConsoleCallFrame(this._profi leView.target(), callFrame, "profile-node-file");
307 } 306 }
308 } 307 }
309 308
310 /** 309 /**
311 * @constructor 310 * @constructor
312 * @extends {WebInspector.ProfileFlameChartDataProvider} 311 * @extends {WebInspector.ProfileFlameChartDataProvider}
313 * @param {!WebInspector.ProfileTreeModel} profile 312 * @param {!WebInspector.ProfileTreeModel} profile
314 * @param {?WebInspector.Target} target 313 * @param {?WebInspector.Target} target
315 */ 314 */
316 WebInspector.HeapFlameChartDataProvider = function(profile, target) 315 WebInspector.HeapFlameChartDataProvider = function(profile, target)
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 * @param {string} value 415 * @param {string} value
417 */ 416 */
418 function pushEntryInfoRow(title, value) 417 function pushEntryInfoRow(title, value)
419 { 418 {
420 entryInfo.push({ title: title, value: value }); 419 entryInfo.push({ title: title, value: value });
421 } 420 }
422 pushEntryInfoRow(WebInspector.UIString("Name"), WebInspector.beautifyFun ctionName(node.functionName)); 421 pushEntryInfoRow(WebInspector.UIString("Name"), WebInspector.beautifyFun ctionName(node.functionName));
423 pushEntryInfoRow(WebInspector.UIString("Self size"), Number.bytesToStrin g(node.self)); 422 pushEntryInfoRow(WebInspector.UIString("Self size"), Number.bytesToStrin g(node.self));
424 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total)); 423 pushEntryInfoRow(WebInspector.UIString("Total size"), Number.bytesToStri ng(node.total));
425 var linkifier = new WebInspector.Linkifier(); 424 var linkifier = new WebInspector.Linkifier();
426 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrame(this._ target, node.frame).textContent; 425 var text = (new WebInspector.Linkifier()).linkifyConsoleCallFrameForTime line(this._target, node.frame).textContent;
427 linkifier.dispose(); 426 linkifier.dispose();
428 pushEntryInfoRow(WebInspector.UIString("URL"), text); 427 pushEntryInfoRow(WebInspector.UIString("URL"), text);
429 return entryInfo; 428 return entryInfo;
430 }, 429 },
431 430
432 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype 431 __proto__: WebInspector.ProfileFlameChartDataProvider.prototype
433 } 432 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698