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

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

Issue 5657001: Merge 73229 - 2010-12-02 Mikhail Naganov <mnaganov@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 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 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 73362)
+++ WebCore/inspector/front-end/HeapSnapshotView.js (working copy)
@@ -327,22 +327,16 @@
_loadProfile: function(profile, callback)
{
- if (profile._loaded) {
- callback(profile);
- return;
- }
+ WebInspector.panels.profiles.loadHeapSnapshot(profile.uid, callback);
+ },
- 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);
- }
+ 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);
},
_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