profile

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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