Documentation ¶
Index ¶
- Constants
- func GetProfileName(typ string, id string, t time.Time) string
- func ProfileAllocs(w io.Writer, debug int) error
- func ProfileBlock(w io.Writer, debug int) error
- func ProfileCPU(w io.Writer, d time.Duration) error
- func ProfileGoroutine(w io.Writer, debug int) error
- func ProfileHeap(w io.Writer, debug int) error
- func ProfileMutex(w io.Writer, debug int) error
- func ProfileRuntime(name string, w io.Writer, debug int) error
- func ProfileThreadcreate(w io.Writer, debug int) error
- func ProfileTrace(w io.Writer, d time.Duration) error
- func Time2DatetimeString(t time.Time) string
Constants ¶
View Source
const ( GOROUTINE = "goroutine" HEAP = "heap" ALLOCS = "allocs" THREADCREATE = "threadcreate" BLOCK = "block" MUTEX = "mutex" CPU = "cpu" TRACE = "trace" )
Variables ¶
This section is empty.
Functions ¶
func GetProfileName ¶
GetProfileName get formatted filepath for example: - pprof/goroutine_${id}_${yyyyDDMM_hhmmss.ns}.pprof - pprof/heap_${id}_${yyyyDDMM_hhmmss.ns}.pprof - pprof/cpu_${id}_${yyyyDDMM_hhmmss.ns}.pprof
func ProfileGoroutine ¶
ProfileGoroutine you can see more infos in https://pkg.go.dev/runtime/pprof#Profile
func ProfileRuntime ¶ added in v1.0.0
func Time2DatetimeString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.