profile

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// CPU, if set, specifies the file name of the CPU profile to capture
	CPU string

	// Memory, if set, specifies the file name of the CPU profile to capture
	Memory string
}

func (*Config) Start

func (c *Config) Start() func()

Start starts a CPU and / or Memory profile if configured and returns a function that should be called to terminate the profiles.

Jump to

Keyboard shortcuts

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