public interface IHeapDumpProvider
org.eclipse.mat.api.heapDumpProvider
extension point.
Arguments can be injected into the query using public fields marked with the Argument
annotation.
Typical arguments to be supplied by the user of the heap dump provider include
Argument.Advice.DIRECTORY
or Argument.Advice.SAVE
.Modifier and Type | Method and Description |
---|---|
File |
acquireDump(VmInfo info,
File preferredLocation,
IProgressListener listener)
Acquire a heap dump from a locally running Java process.
|
List<? extends VmInfo> |
getAvailableVMs(IProgressListener listener)
Returns a list of locally running Java processes from which the heap dump
provider can attempt to acquire a heap dump
|
List<? extends VmInfo> getAvailableVMs(IProgressListener listener) throws SnapshotException
listener
- a progress listenerVmInfo
.SnapshotException
File acquireDump(VmInfo info, File preferredLocation, IProgressListener listener) throws SnapshotException
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 listenerSnapshotException