Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Memory Analyzer » How to extend Memory Analyzer
How to extend Memory Analyzer [message #1744559] Wed, 28 September 2016 09:47
Francesco Fucci is currently offline Francesco FucciFriend
Messages: 1
Registered: September 2016
Junior Member
I need to develop a tool that acquires a list of HPROF dump stored on the disk and perform a series of analyses on them.
I tried to strictly follow the (very poor) documentation found on the document "How to write extensions for Memory Analyzer", and I came up only with a new empty Eclipse RCP application .

I have just few questions:
Could you please give me some insights about how to put an "Acquire heap dump" function from hard disk?

I tried to start with this plugin:
package matextension;

import org.eclipse.mat.SnapshotException;
import org.eclipse.mat.snapshot.extension.IClassSpecificNameResolver;
import org.eclipse.mat.snapshot.extension.Subject;
import org.eclipse.mat.snapshot.model.IObject;

public class MATResolver1 implements IClassSpecificNameResolver {

public MATResolver1() {
// TODO Auto-generated constructor stub

public String resolve(IObject object) throws SnapshotException {
// TODO Auto-generated method stub
return "The Java runtime of size"+object.getUsedHeapSize();


How could I test that this code is actually working?

Previous Topic:MAT 1.6 OQL object de-reference problem - yields blank row values
Next Topic:Using MAT to analyze Eclipse OOME (headless)
Goto Forum:

Current Time: Sat Jan 25 04:59:45 GMT 2020

Powered by FUDForum. Page generated in 0.02344 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top