Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseCaller ¶
ParseCaller returns the package based function name from the runtime based function call name
Types ¶
type Call ¶
Call represents the package of the calling position and the function of the calling position
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents profiler of the goroutine
func Enter ¶
func Enter() *Instance
Enter returns the profiler of the current function in the current goroutine
type Profiler ¶
type Profiler struct { sync.RWMutex Caller string FileName string Line int GOID int64 ParentMap map[string]bool // contains filtered or unexported fields }
Profiler is an alpha stage (*unstable yet) It provides profile functions regardless of goroutines
type SnapshotData ¶
type SnapshotData struct { ID string PkgName string FuncName string FileName string Line int Parents []*Call Tag string Data Data TDiff int64 }
SnapshotData represents the profile data of the profiler instance
func Snapshot ¶
func Snapshot() []SnapshotData
Snapshot returns all snapshots that are generated by all profiler instances
Click to show internal directories.
Click to hide internal directories.