pprof

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mixin

type Mixin struct {
	handler.DefaultSession

	CpuFile string `usage:"File to receive pprof CPU profile"`
	MemFile string `usage:"File to receive pprof memory profile"`
}

func (*Mixin) BindCobraFlags

func (m *Mixin) BindCobraFlags(cmd *cobra.Command) []string

Implements cage/cli/handler.Mixin

func (*Mixin) Do

func (m *Mixin) Do(ctx context.Context, f func(context.Context)) (tagKey, tagVal string, err error)

func (*Mixin) Name

func (m *Mixin) Name() string

Implements cage/cli/handler/Mixin

func (*Mixin) PostRun

func (m *Mixin) PostRun(ctx context.Context)

Implements cage/cli/handler.PostRun

func (*Mixin) PreRun

func (m *Mixin) PreRun(ctx context.Context, args []string) error

Implements cage/cli/handler.PreRun

Jump to

Keyboard shortcuts

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