Bug 541539 - Simple batch mode comparison of two snapshots
Summary: Simple batch mode comparison of two snapshots
Status: RESOLVED FIXED
Alias: None
Product: MAT
Classification: Tools
Component: Core (show other bugs)
Version: 1.8   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.9.0   Edit
Assignee: Andrew Johnson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 298078
  Show dependency tree
 
Reported: 2018-11-25 16:29 EST by Andrew Johnson CLA
Modified: 2019-06-13 07:30 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Johnson CLA 2018-11-25 16:29:57 EST
Bug 483418 was created to answer a request for:

"b. The Eclipse Memory Analyzer can compare two heapdumps, Run this compare function in command line. "
http://dev.eclipse.org/mhonarc/lists/mat-dev/msg00449.html

Here is another approach which uses the experimental facility in bug 380600 to allow options to be passed to reports.

This defines a hidden query comparing two snapshots, the second specified as Advice.SECONDARY_SNAPSHOT and invokes it as a query, using the new filter type !=0 to remove entries which are the same.

ParseHeapDump dump1.hprof -snapshot2=dump2.hprof org.eclipse.mat.api:compare
Comment 1 Eclipse Genie CLA 2018-11-25 16:32:39 EST
New Gerrit change created: https://git.eclipse.org/r/133037
Comment 3 Eclipse Genie CLA 2018-11-25 17:45:47 EST
New Gerrit change created: https://git.eclipse.org/r/133041
Comment 5 Eclipse Genie CLA 2018-11-26 07:37:12 EST
New Gerrit change created: https://git.eclipse.org/r/133063
Comment 7 Eclipse Genie CLA 2018-11-28 16:32:10 EST
New Gerrit change created: https://git.eclipse.org/r/133217
Comment 9 Eclipse Genie CLA 2018-11-28 17:03:04 EST
New Gerrit change created: https://git.eclipse.org/r/133219
Comment 11 Eclipse Genie CLA 2018-11-29 08:21:41 EST
New Gerrit change created: https://git.eclipse.org/r/133257
Comment 13 Eclipse Genie CLA 2018-11-30 06:46:26 EST
New Gerrit change created: https://git.eclipse.org/r/133303
Comment 15 Eclipse Genie CLA 2018-12-02 04:21:42 EST
New Gerrit change created: https://git.eclipse.org/r/133345
Comment 17 Eclipse Genie CLA 2019-06-13 06:42:18 EDT
New Gerrit change created: https://git.eclipse.org/r/143948
Comment 19 Andrew Johnson CLA 2019-06-13 07:30:14 EDT
Implemented together with some help text.

Any problems can be handled via a new bug.