| 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)
|
|
|