public class HprofIndexBuilder extends Object implements IIndexBuilder
Constructor and Description |
---|
HprofIndexBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
called in case of error to delete any files / close any file handles
|
void |
clean(int[] purgedMapping,
IProgressListener listener)
Memory Analyzer has discard unreachable objects, so the parser may need to known
the discarded objects
|
void |
fill(IPreliminaryIndex preliminary,
IProgressListener listener)
pass1 and pass2 parsing
|
void |
init(File file,
String prefix)
initialize with file and prefix (needed for naming conventions)
|
public void init(File file, String prefix)
IIndexBuilder
init
in interface IIndexBuilder
file
- the dump fileprefix
- used to build index filespublic void fill(IPreliminaryIndex preliminary, IProgressListener listener) throws SnapshotException, IOException
IIndexBuilder
fill
in interface IIndexBuilder
listener
- for progress and error reportingSnapshotException
IOException
public void clean(int[] purgedMapping, IProgressListener listener) throws IOException
IIndexBuilder
clean
in interface IIndexBuilder
purgedMapping
- mapping from old id to new id, -1 indicates object has been discardedlistener
- for progress and error reportingIOException
public void cancel()
IIndexBuilder
cancel
in interface IIndexBuilder