package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Sep 28, 2022
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func CPUProfile(ctx context.Context, sec int) ([]byte, map[string]string, error)
-
func Profile(profile string, debug, gc int) ([]byte, map[string]string, error)
-
func Trace(ctx context.Context, sec int) ([]byte, map[string]string, error)
CPUProfile generates a CPU Profile for a given duration
Profile generates a pprof.Profile report for the given profile name.
Trace runs a trace profile for a given duration
Source Files
¶
Click to show internal directories.
Click to hide internal directories.