Documentation ¶
Overview ¶
Package index provides indexed data for a HProf file.
Index ¶
- type Index
- func (idx *Index) Class(classObjectID uint64) (*hprofdata.HProfClassDump, error)
- func (idx *Index) ForEachRootJNIGlobal(fn func(*hprofdata.HProfRootJNIGlobal) error) error
- func (idx *Index) ForEachRootJNILocal(fn func(*hprofdata.HProfRootJNILocal) error) error
- func (idx *Index) ForEachRootJavaFrame(fn func(*hprofdata.HProfRootJavaFrame) error) error
- func (idx *Index) ForEachRootStickyClass(fn func(*hprofdata.HProfRootStickyClass) error) error
- func (idx *Index) ForEachRootThreadObj(fn func(*hprofdata.HProfRootThreadObj) error) error
- func (idx *Index) Frame(stackFrameID uint64) (*hprofdata.HProfRecordFrame, error)
- func (idx *Index) Instance(objectID uint64) (*hprofdata.HProfInstanceDump, error)
- func (idx *Index) LoadedClass(classSerialNumber uint32) (*hprofdata.HProfRecordLoadClass, error)
- func (idx *Index) ObjectArray(arrayObjectID uint64) (*hprofdata.HProfObjectArrayDump, error)
- func (idx *Index) PrimitiveArray(arrayObjectID uint64) (*hprofdata.HProfPrimitiveArrayDump, error)
- func (idx *Index) String(nameID uint64) (string, error)
- func (idx *Index) Trace(stackTraceSerialNumber uint64) (*hprofdata.HProfRecordTrace, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is indexed HProf data.
func OpenOrCreateIndex ¶
OpenOrCreateIndex opens or creates a DB based on the HProf file.
func (*Index) Class ¶
func (idx *Index) Class(classObjectID uint64) (*hprofdata.HProfClassDump, error)
Class returns a HProfClassDump based on a class object ID.
func (*Index) ForEachRootJNIGlobal ¶
func (idx *Index) ForEachRootJNIGlobal(fn func(*hprofdata.HProfRootJNIGlobal) error) error
ForEachRootJNIGlobal iterates through all HProfRootJNIGlobal objects.
func (*Index) ForEachRootJNILocal ¶
func (idx *Index) ForEachRootJNILocal(fn func(*hprofdata.HProfRootJNILocal) error) error
ForEachRootJNILocal iterates through all HProfRootJNILocal objects.
func (*Index) ForEachRootJavaFrame ¶
func (idx *Index) ForEachRootJavaFrame(fn func(*hprofdata.HProfRootJavaFrame) error) error
ForEachRootJavaFrame iterates through all HProfRootJavaFrame objects.
func (*Index) ForEachRootStickyClass ¶
func (idx *Index) ForEachRootStickyClass(fn func(*hprofdata.HProfRootStickyClass) error) error
ForEachRootStickyClass iterates through all HProfRootStickyClass objects.
func (*Index) ForEachRootThreadObj ¶
func (idx *Index) ForEachRootThreadObj(fn func(*hprofdata.HProfRootThreadObj) error) error
ForEachRootThreadObj iterates through all HProfRootThreadObj objects.
func (*Index) Frame ¶
func (idx *Index) Frame(stackFrameID uint64) (*hprofdata.HProfRecordFrame, error)
Frame returns a HProfRecordFrame based on a stack frame ID.
func (*Index) Instance ¶
func (idx *Index) Instance(objectID uint64) (*hprofdata.HProfInstanceDump, error)
Instance returns a HProfInstanceDump based on an object ID.
func (*Index) LoadedClass ¶
func (idx *Index) LoadedClass(classSerialNumber uint32) (*hprofdata.HProfRecordLoadClass, error)
LoadedClass returns a HProfRecordLoadClass based on a class serial number.
func (*Index) ObjectArray ¶
func (idx *Index) ObjectArray(arrayObjectID uint64) (*hprofdata.HProfObjectArrayDump, error)
ObjectArray returns a HProfObjectArrayDump based on an array object ID.
func (*Index) PrimitiveArray ¶
func (idx *Index) PrimitiveArray(arrayObjectID uint64) (*hprofdata.HProfPrimitiveArrayDump, error)
PrimitiveArray returns a HProfPrimitiveArrayDump based on an array object ID.