Documentation ¶
Index ¶
- Variables
- func StartCPUAndMemoryProfile(opts ...Option) error
- func StartCPUProfile(opts ...Option) error
- func StartMemoryProfile(opts ...Option) error
- type Config
- type Option
- func WithCPUProfileFile(file string) Option
- func WithContext(ctx context.Context) Option
- func WithFinished(h func(string)) Option
- func WithMemProfileFile(file string) Option
- func WithOnCPUProfileFinished(fn func(string, error)) Option
- func WithOnCPUProfileStarted(fn func(string)) Option
- func WithOnMemProfileFinished(fn func(string, error)) Option
- func WithOnMemProfileStarted(fn func(string)) Option
- func WithTimeout(i float64) Option
Constants ¶
This section is empty.
Variables ¶
View Source
var Exports = map[string]any{ "StartCPUAndMemoryProfile": StartCPUAndMemoryProfile, "StartCPUProfile": StartCPUProfile, "StartMemoryProfile": StartMemoryProfile, "cpuProfilePath": WithCPUProfileFile, "memProfilePath": WithMemProfileFile, "ctx": WithContext, "onCPUProfileFinished": WithOnCPUProfileFinished, "onCPUProfileStarted": WithOnCPUProfileStarted, "onMemProfileStarted": WithOnMemProfileStarted, "onMemProfileFinished": WithOnMemProfileFinished, "timeout": WithTimeout, "callback": WithFinished, }
Functions ¶
func StartCPUProfile ¶
func StartMemoryProfile ¶
Types ¶
type Option ¶
type Option func(*Config)
func WithCPUProfileFile ¶
func WithContext ¶
func WithFinished ¶
func WithMemProfileFile ¶
func WithOnCPUProfileStarted ¶
func WithOnMemProfileStarted ¶
func WithTimeout ¶
Click to show internal directories.
Click to hide internal directories.