index

package
v0.0.0-...-e6e1b3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package index provides indexed data for a HProf file.

Index

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

func OpenOrCreateIndex(heapFilePath, indexFilePath string) (*Index, error)

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.

func (*Index) String

func (idx *Index) String(nameID uint64) (string, error)

String returns a name based on a name ID.

func (*Index) Trace

func (idx *Index) Trace(stackTraceSerialNumber uint64) (*hprofdata.HProfRecordTrace, error)

Trace returns a HProfRecordTrace based on a stack trace serial number.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL