Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mat-dev] Proposal: MAT Warning System

Hey Andrew,

One idea is to auto-generate a "Memory Analyzer Loaded Dumps" project and add resources to it any time a dump is opened. We'd probably want to "clear" this project on startup so that the set of resources doesn't grow infinitely or have to be manually managed.

--
Kevin Grigorenko
IBM WAS SWAT Team
kevin.grigorenko@xxxxxxxxxx
Blog: https://www.ibm.com/developerworks/mydeveloperworks/blogs/kevgrig/?lang=en


Inactive hide details for Andrew Johnson ---03/18/2013 04:45:25 AM---Here is an example of how a problem view might look. I modAndrew Johnson ---03/18/2013 04:45:25 AM---Here is an example of how a problem view might look. I modified MultiPaneEditor to implement IGotoMa


    From:

Andrew Johnson <andrew_johnson@xxxxxxxxxx>

    To:

Memory Analyzer Dev list <mat-dev@xxxxxxxxxxx>,

    Date:

03/18/2013 04:45 AM

    Subject:

Re: [mat-dev] Proposal: MAT Warning System

    Sent by:

mat-dev-bounces@xxxxxxxxxxx




Here is an example of how a problem view might look. 



I modified MultiPaneEditor to implement IGotoMarker, added some dummy problem markers when an IFileEditorInput was received on opening a file from the project explorer, and added a  public void gotoMarker(IMarker arg0) method which when given a location would bring an existing list_objects page for the object to the top.
 

I then ran MAT inside Eclipse, then created a project in the project explorer for the dump file, then opened the dump file.
 

This was just a quick example to try out the idea - the gotoMarker also needs to run a  list_objects command if one does not already exist.
 

The problem marker creation would need to be integrated into the new MAT warning framework. Also problem markers only seem to work with resources, so I'm not sure how to make a resource for a dump which is not in a workspace. Perhaps the dump would need to be linked into a project, or the index files linked into the project. When there are multiple snapshots in a dump [1 ] how could we show this in the project explorer? Could the project explorer expand from dump to snapshot[s] to classloaders/classes/objects?
 

Andrew Johnson
 

[1] 380858: Allow selection of which runtime to analyze when core file contains multiple java runtimes
 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380858 

Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU[attachment "problemlog.png" deleted by Kevin Grigorenko/Austin/IBM]
_______________________________________________
mat-dev mailing list
mat-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mat-dev


GIF image

GIF image


Back to the top