| java.lang.Object org.netbeans.insane.model.InsaneConverter
InsaneConverter | final class InsaneConverter (Code) | | Parses a SimpleXMLVisitor XML output and converts it into simple binary
format suitable for mmap usage.
This version does a two-pass over the XML dump to spare memory during
conversion. Estimated memory consumption during the scan is about objects*30B
The format (version 'SBIH'):
INT version
INT refsOffset
INT objsOffset
CLASS_TYPEs
REF_TYPEs (static refs come first)
OBJECTs
OBJECT:
INT classTypeOffset
INT heapSize
INT numOutgoing
INT numIncomming
REFs outgoing
REFs incomming
REF:
INT refTypeOffset (or negative iff array index)
INT objectOffset
REF_TYPE:
STR referenceName
INT staticOffset (0 for null static ref, -1 for nonstatic ref)
STR:
INT len
UTF8 text
CLASS_TYPE:
STR className
INT numInstances
INTs objectOffsets
author: Nenik |
getByteBuffer | ByteBuffer getByteBuffer(int offset)(Code) | | |
|
|