New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.
Starred by 19 users
Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 2013
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment
Heap snapshots cannot be compared after saving and reloading
Reported by ninten...@gmail.com, Oct 4 2012 Back to list
Steps to reproduce the problem:
1. Create two heap snapshots of a webapp in two different points in time.
2. Note in the summary view of the later heap snapshot that you can view objects allocated "between snapshot x and y", and that you can use the Comparison view to see how memory has shrunk/grown between the two snapshots.
3. Save the heap snapshots to disk.
4. Close Chrome.
5. Reopen Chrome.
6. Reload the heap snapshots.
7. In the summary view of the later snapshot, note that you can only view 'All' objects; you cannot view objects allocated between the snapshots.
8. Furthermore, try to use the comparison view between the two snapshots. It will be blank, even though there are differences between the two heaps.

What is the expected behavior?
Reloading the heap snapshots will allow you to view the objects allocated between the two snapshots, and will allow you to use the Comparison view to compare the two snapshots.

What went wrong?
You are unable to compare two heap snapshots after reloading them into Chrome from files. This removes the utility of sharing snapshots among a development team to find a memory leak in a large nontrivial JavaScript application.

Did this work before? N/A 

Chrome version: 22.0.1229.79
OS Version: OS X 10.8.1

Here is an example set of two heap snapshots taken from the Yahoo! homepage. You can use these to reproduce the problem:

https://docs.google.com/open?id=0BzhBeckwqxilNzRVU1BwV0ZUdGM

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_1) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4
 
One note: Beware of the following bug when testing this.

http://code.google.com/p/chromium/issues/detail?id=154095

^ Working around the above bug still produces the behavior specified in this bug report.
Owner: yu...@chromium.org
Status: Assigned
Comment 3 by yu...@chromium.org, Oct 10 2012
Cc: loislo@chromium.org a...@chromium.org
I am also seeing this issue

Chrome version: 26.0.1397.2 dev
OS Version: Debian squeeze, Linux 2.6.32-5-amd64
Comment 5 by fdo...@gmail.com, Feb 9 2013
Reproduced with Version 26.0.1403.0 dev as well.
Project Member Comment 6 by bugdroid1@chromium.org, Mar 10 2013
Labels: -Feature-DevTools Cr-Platform-DevTools
Comment 7 by wav...@gmail.com, Sep 19 2013
Still exists in 31.0.1632.4.  Support would be greatly appreciated.  Usefully not only for web applications but also Node applications where heaps are taken and analyzed off production instances.
Owner: loislo@chromium.org
Comment 9 by yu...@chromium.org, Sep 23 2013
Owner: yu...@chromium.org
Project Member Comment 10 by bugdroid1@chromium.org, Sep 23 2013
The following revision refers to this bug:
    http://src.chromium.org/viewvc/blink?view=rev&rev=158194

------------------------------------------------------------------------
r158194 | yurys@chromium.org | 2013-09-23T17:59:32.224562Z

Changed paths:
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/ProfilesPanel.js?r1=158194&r2=158193&pathrev=158194
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/HeapSnapshotView.js?r1=158194&r2=158193&pathrev=158194

Allow to compare heap snashots loaded from files

BUG= 154084 

Review URL: https://chromiumcodereview.appspot.com/24364003
------------------------------------------------------------------------
Project Member Comment 11 by bugdroid1@chromium.org, Sep 24 2013
The following revision refers to this bug:
    http://src.chromium.org/viewvc/blink?view=rev&rev=158273

------------------------------------------------------------------------
r158273 | yurys@chromium.org | 2013-09-24T14:33:24.237347Z

Changed paths:
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/ProfilesPanelDescriptor.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector/profiler/cpu-profiler-save-load.html?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/CPUProfileView.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/ProfilesPanel.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/LayoutTests/inspector-protocol/cpu-profiler/record-cpu-profile.html?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/HeapSnapshotView.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/JSHeapSnapshot.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InspectorHeapProfilerAgent.cpp?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/HeapSnapshot.js?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/core/inspector/InspectorProfilerAgent.cpp?r1=158273&r2=158272&pathrev=158273
   M http://src.chromium.org/viewvc/blink/trunk/Source/devtools/front_end/HeapSnapshotProxy.js?r1=158273&r2=158272&pathrev=158273

Make "three snapshot technique" work on heap snapshots loaded from files

This changes allows to show objects created between two selected heap snapshots in the case when the snapshots have been loaded from files.

BUG= 154084 
R=loislo@chromium.org

Review URL: https://codereview.chromium.org/23609064
------------------------------------------------------------------------
Comment 12 by yu...@chromium.org, Sep 24 2013
Status: Fixed
Sign in to add a comment