Package org.eclipse.mat.parser
Interface IPreliminaryIndex
public interface IPreliminaryIndex
Where the parser collect informations when first opening a snapshot
- No Implement:
-
Method Summary
Modifier and TypeMethodDescriptionGet basic information about the snapshotvoid
setArray2size
(IIndexReader.IOne2SizeIndex array2size) store the array to size in bytes mappingvoid
setClassesById
(HashMapIntObject<ClassImpl> classesById) Store the class id to ClassImpl mappingvoid
setGcRoots
(HashMapIntObject<List<XGCRootInfo>> gcRoots) store the GC roots informationvoid
setIdentifiers
(IIndexReader.IOne2LongIndex identifiers) store the object id to address mappingvoid
setObject2classId
(IIndexReader.IOne2OneIndex object2classId) store the object id to class id mappingvoid
setOutbound
(IIndexReader.IOne2ManyIndex outbound) store the object to outbound references table.void
setThread2objects2roots
(HashMapIntObject<HashMapIntObject<List<XGCRootInfo>>> thread2objects2roots) store the thread local variable information
-
Method Details
-
getSnapshotInfo
XSnapshotInfo getSnapshotInfo()Get basic information about the snapshot- Returns:
- the basic data
-
setClassesById
Store the class id to ClassImpl mapping- Parameters:
classesById
- the map of class ID to ClassImp
-
setGcRoots
store the GC roots information- Parameters:
gcRoots
- the map from object ID to list of GC roots
-
setThread2objects2roots
void setThread2objects2roots(HashMapIntObject<HashMapIntObject<List<XGCRootInfo>>> thread2objects2roots) store the thread local variable information- Parameters:
thread2objects2roots
- the map from thread ID to a map of object ID of local variables to a list of GC root information
-
setOutbound
store the object to outbound references table. The type of the object must be the first reference.- Parameters:
outbound
- an index from object ID to all the outbound references as object IDs
-
setIdentifiers
store the object id to address mapping- Parameters:
identifiers
- the index from object ID to object address
-
setObject2classId
store the object id to class id mapping- Parameters:
object2classId
- the index from object ID to its type as a class ID
-
setArray2size
store the array to size in bytes mapping- Parameters:
array2size
- an index from the object ID of an array to its size in bytes- Since:
- 1.0
-