org.eclipse.mat.hprof.acquire
Class JMapHeapDumpProvider
java.lang.Object
org.eclipse.mat.hprof.acquire.JMapHeapDumpProvider
- All Implemented Interfaces:
- IHeapDumpProvider
public class JMapHeapDumpProvider
- extends Object
- implements IHeapDumpProvider
jdkHome
public File jdkHome
JMapHeapDumpProvider
public JMapHeapDumpProvider()
acquireDump
public File acquireDump(VmInfo info,
File preferredLocation,
IProgressListener listener)
throws SnapshotException
- Description copied from interface:
IHeapDumpProvider
- Acquire a heap dump from a locally running Java process. The
- Specified by:
acquireDump
in interface IHeapDumpProvider
- Parameters:
info
- a descriptor of the Java process which should be dumpedpreferredLocation
- a preferred filename under which the heap dump should be
saved. The IHeapDumpProvider
is not obliged to provide
the heap dump at this locationlistener
- a progress listener
- Returns:
- the File under which the successfully generated heap dump is
saved
- Throws:
SnapshotException
getAvailableVMs
public List<JmapVmInfo> getAvailableVMs(IProgressListener listener)
throws SnapshotException
- Description copied from interface:
IHeapDumpProvider
- Returns a list of locally running Java processes from which the heap dump
provider can attempt to acquire a heap dump
- Specified by:
getAvailableVMs
in interface IHeapDumpProvider
- Parameters:
listener
- a progress listener
- Returns:
- A List of VMs, of a type which extends
VmInfo
.
- Throws:
SnapshotException