Documentation
¶
Index ¶
- Variables
- func Close() error
- func Help() string
- func StartBlockProfiler(file string, debug int) error
- func StartCPUProfiler(file string) error
- func StartGoroutineProfiler(fileprefix string, t time.Duration) error
- func StartHeapProfiler(file string) error
- func StartMemProfiler(file string) error
- func StartMutexProfiler(file string, debug int) error
- func StartProfiler(typ ProfileType) error
- func StartThreadCreateProfiler(file string) error
- func StartTraceProfiler(file string) error
- type ProfileType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// ProfileTypeEnum enum of profiling options
ProfileTypeEnum, _ = enummap.NewEnumMap(map[string]int{
"cpu": int(ProfileTypeCPU),
"block": int(ProfileTypeBlock),
"goroutine": int(ProfileTypeGoRoutine),
"threadcreate": int(ProfileTypeTreadCreate),
"heap": int(ProfileTypeHeap),
"mutex": int(ProfileTypeMutex),
"trace": int(ProfileTypeTrace),
"mem": int(ProfileTypeMem),
})
)
Functions ¶
func StartBlockProfiler ¶
StartBlockProfiler and save to file, debug flag adds stacks to profile
func StartGoroutineProfiler ¶
StartGoroutineProfiler and save to a fileprefix_%i.out file each t
func StartHeapProfiler ¶
StartHeapProfiler and save to file
func StartMutexProfiler ¶
StartMutexProfiler and save to file, debug flag adds stacks to profile
func StartProfiler ¶
func StartProfiler(typ ProfileType) error
StartProfiler start profiler of type (typ) with default parameters
func StartThreadCreateProfiler ¶
StartThreadCreateProfiler and save to file
func StartTraceProfiler ¶
StartTraceProfiler and save to file
Types ¶
type ProfileType ¶
type ProfileType int
const ( ProfileTypeUnknown ProfileType = iota // Default value of int ProfileTypeCPU ProfileTypeBlock ProfileTypeGoRoutine ProfileTypeTreadCreate ProfileTypeHeap ProfileTypeMutex ProfileTypeTrace ProfileTypeMem )
func ResolveParameter ¶
func ResolveParameter(param string) (ProfileType, error)
ResolveParameter of string or int to profiletype
Click to show internal directories.
Click to hide internal directories.