profile

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GOROUTINE = "goroutine"
	HEAP      = "heap"
	CPU       = "cpu"
)

Variables

This section is empty.

Functions

func GetProfileName

func GetProfileName(typ string, id string, t time.Time) string

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 ProfileCPU

func ProfileCPU(w io.Writer, d time.Duration) error

func ProfileGoroutine

func ProfileGoroutine(w io.Writer, debug int) error

func ProfileHeap

func ProfileHeap(w io.Writer, debug int) error

func Time2DatetimeString

func Time2DatetimeString(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL