Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocProfile ¶
type AllocStackSample ¶
type DumpParams ¶
type DumpReader ¶
type DumpReader struct { OnObjectFn func(record Object) error OnOtherRootFn func(record OtherRoot) error OnTypeDescFn func(record TypeDesc) error OnGoroutineFn func(record Goroutine) error OnStackFrameFn func(record StackFrame) error OnDumpParamsFn func(record DumpParams) error OnFinalizerFn func(record Finalizer) error OnItabFn func(record Itab) error OnOSThreadFn func(record OSThread) error OnMemStatsFn func(record MemStats) error OnQueuedFinalizerFn func(record Finalizer) error OnDataSegmentFn func(record Segment) error OnBSSSegmentFn func(record Segment) error OnDeferFn func(record Defer) error OnPanicFn func(record Panic) error OnAllocProfileFn func(record AllocProfile) error OnAllocStackSampleFn func(record AllocStackSample) error }
DumpReader is used to parse heap dump file. You can set handlers for each record type via On* fields.
If the field is not set, the record will be skipped.
func (DumpReader) Read ¶
func (d DumpReader) Read(r Reader) error
Read parses heap dump. On every record it will invoke a certain On* function. The return error is either an error
from parser itself or propagated from callback. Current version of heap dump supported is 1.7. Read https://github.com/golang/go/wiki/heapdump15-through-heapdump17 for the details.
type MemStats ¶
type MemStats struct { Alloc uint64 TotalAlloc uint64 Sys uint64 Lookups uint64 Mallocs uint64 Frees uint64 HeapAlloc uint64 HeapSys uint64 HeapIdle uint64 HeapInuse uint64 HeapReleased uint64 HeapObjects uint64 StackInuse uint64 StackSys uint64 MSpanInuse uint64 MSpanSys uint64 MCacheInuse uint64 MCacheSys uint64 BuckHashSys uint64 GCSys uint64 OtherSys uint64 NextGC uint64 LastGC uint64 PauseTotalNs uint64 PauseNs [256]uint64 NumGC uint64 }
type StackFrame ¶
Click to show internal directories.
Click to hide internal directories.