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

Unified Diff: WebCore/inspector/front-end/HeapSnapshotView.js

Issue 6048013: Revert 73364 - Merge 73229 - 2010-12-02 Mikhail Naganov <mnaganov@chromium.... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | WebCore/inspector/front-end/ProfilesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebCore/inspector/front-end/HeapSnapshotView.js
===================================================================
--- WebCore/inspector/front-end/HeapSnapshotView.js (revision 75089)
+++ WebCore/inspector/front-end/HeapSnapshotView.js (working copy)
@@ -327,16 +327,22 @@
_loadProfile: function(profile, callback)
{
- WebInspector.panels.profiles.loadHeapSnapshot(profile.uid, callback);
- },
+ if (profile._loaded) {
+ callback(profile);
+ return;
+ }
- processLoadedSnapshot: function(profile, loadedSnapshot)
- {
- var snapshot = WebInspector.HeapSnapshotView.prototype._convertSnapshot(loadedSnapshot);
- profile.children = snapshot.children;
- profile.entries = snapshot.entries;
- profile.lowlevels = snapshot.lowlevels;
- WebInspector.HeapSnapshotView.prototype._prepareProfile(profile);
+ InspectorBackend.getProfile(profile.typeId, profile.uid, loadedCallback.bind(this));
+
+ function loadedCallback(loadedSnapshot) {
+ profile.children = loadedSnapshot.head.children;
+ profile.entries = loadedSnapshot.head.entries;
+ profile.lowlevels = loadedSnapshot.head.lowlevels;
+ this._prepareProfile(profile);
+ profile._loaded = true;
+ this.parent.updateProfile(profile);
+ callback(profile);
+ }
},
_mouseDownInDataGrid: function(event)
« no previous file with comments | « no previous file | WebCore/inspector/front-end/ProfilesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698