Documentation
¶
Overview ¶
Package profile provides runtime profiling helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPUProfile ¶
CPUProfile starts CPU profiling to the given file.
func GoroutineProfile ¶
GoroutineProfile writes a goroutine profile to the given file.
func MemoryProfile ¶
MemoryProfile writes a heap profile to the given file.
Types ¶
type Stats ¶
type Stats struct {
NumGoroutine int `json:"num_goroutine"`
NumCPU int `json:"num_cpu"`
MemAlloc uint64 `json:"mem_alloc"`
MemTotalAlloc uint64 `json:"mem_total_alloc"`
MemSys uint64 `json:"mem_sys"`
MemNumGC uint32 `json:"mem_num_gc"`
Timestamp int64 `json:"timestamp"`
}
Stats returns runtime statistics.
Click to show internal directories.
Click to hide internal directories.