Documentation
¶
Index ¶
Constants ¶
View Source
const ( FieldKindEol FieldKind = 0 FieldKindPtr = 1 FieldKindIface = 2 FieldKindEface = 3 FieldKindString = 4 FieldKindSlice = 5 FieldKindBool FieldKind = 6 FieldKindUInt8 = 7 FieldKindSInt8 = 8 FieldKindUInt16 = 9 FieldKindSInt16 = 10 FieldKindUInt32 FieldKind = 11 FieldKindSInt32 = 12 FieldKindUInt64 FieldKind = 13 FieldKindSInt64 = 14 FieldKindFloat32 = 15 FieldKindFloat64 = 16 FieldKindComplex64 = 17 FieldKindComplex128 = 18 FieldKindBytes4 = 19 FieldKindBytes8 = 20 FieldKindBytes16 = 21 FieldKindBytesElided = 22 TypeKindObject TypeKind = 0 TypeKindArray = 1 TypeKindChan = 2 TypeKindConservative = 127 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocSample ¶
type AllocSample struct {
Addr uint64 // address of object
Prof *MemProfEntry // record of allocation site
}
type Dump ¶
type Dump struct {
Order binary.ByteOrder
PtrSize uint64 // in bytes
HeapStart uint64
HeapEnd uint64
GoArch string
Experiment string
Ncpu uint64
Types []*Type
Frames []*StackFrame
Goroutines []*GoRoutine
Otherroots []*OtherRoot
Finalizers []*Finalizer // pending finalizers, object still live
QFinal []*QFinalizer // finalizers which are ready to run
Osthreads []*OSThread
Memstats *runtime.MemStats
Data *Data
Bss *Data
Defers []*Defer
Panics []*Panic
MemProf []*MemProfEntry
AllocSamples []*AllocSample
// list of full types, indexed by ID
FTList []*FullType
// map from type address to type
TypeMap map[uint64]*Type
// map from itab address to the type address that itab address represents.
ItabMap map[uint64]uint64
// contains filtered or unexported fields
}
func (*Dump) FindObj ¶
FindObj returns the object id containing the address addr, or -1 if no object contains addr.
func (*Dump) NumObjects ¶
NumObjects returns the number of objects in the heap. Valid ObjIds for other calls are from 0 to NumObjects()-1.
type Edge ¶
type Edge struct {
To ObjId // index of target object in array
FromOffset uint64 // offset in source object where ptr was found
ToOffset uint64 // offset in destination object where ptr lands
// name of field in the source object, if known
FieldName string
}
An edge is a directed connection between two objects. The source object is implicit. An edge includes information about where it leaves the source object and where it lands in the destination obj.
type Field ¶
type Field struct {
Kind FieldKind
Offset uint64
Name string
BaseType string // base type for Ptr, Slice, Iface ("" if not known)
}
A Field is a location in an object where there might be a pointer.
type Finalizer ¶
type Finalizer struct {
// contains filtered or unexported fields
}
Object obj has a finalizer.
type MemProfEntry ¶
type MemProfEntry struct {
// contains filtered or unexported fields
}
type MemProfFrame ¶
type QFinalizer ¶
type QFinalizer struct {
Edges []Edge
// contains filtered or unexported fields
}
Finalizer that's ready to run
type StackFrame ¶
Click to show internal directories.
Click to hide internal directories.