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

Unified Diff: webkit/glue/devtools/js/heap_profiler_panel.js

Issue 355012: DevTools: prepare for WebKit change 50460. (Closed)
Patch Set: Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/inspector_controller.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/heap_profiler_panel.js
diff --git a/webkit/glue/devtools/js/heap_profiler_panel.js b/webkit/glue/devtools/js/heap_profiler_panel.js
index ee80506717725a79ac23fcaeccb017a7d8f1f768..b0d9b688aa853ce9558333a25970e0cfd68c16ef 100644
--- a/webkit/glue/devtools/js/heap_profiler_panel.js
+++ b/webkit/glue/devtools/js/heap_profiler_panel.js
@@ -8,13 +8,17 @@
WebInspector.ProfilesPanel.prototype.addSnapshot = function(snapshot) {
snapshot.title = WebInspector.UIString("Snapshot %d", snapshot.number);
+ snapshot.typeId = WebInspector.HeapSnapshotProfileType.TypeId;
var snapshots = WebInspector.HeapSnapshotProfileType.snapshots;
snapshots.push(snapshot);
snapshot.listIndex = snapshots.length - 1;
- this.addProfileHeader(WebInspector.HeapSnapshotProfileType.TypeId, snapshot);
+ if (WebInspector.CPUProfile)
+ this.addProfileHeader(WebInspector.HeapSnapshotProfileType.TypeId, snapshot);
+ else
+ this.addProfileHeader(snapshot);
this.dispatchEventToListeners("snapshot added");
}
« no previous file with comments | « webkit/glue/devtools/js/devtools.js ('k') | webkit/glue/devtools/js/inspector_controller.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698