profile

package
v2.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2020 License: MIT Imports: 5 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