pprofile

package
v0.0.0-...-3fa228a Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2016 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 Prof

type Prof struct {
	// contains filtered or unexported fields
}

The Prof handle represents a profiling job.

func New

func New(name string) Prof

New returns a profiler. Only one profiler may run at a time.

func (*Prof) Start

func (pro *Prof) Start() error

Start a new run of the profiler.

func (*Prof) Stop

func (pro *Prof) Stop() error

Stop profiling and output results to a file.

func (*Prof) TimedRun

func (pro *Prof) TimedRun(duration time.Duration) error

TimedRun is a convenience function that starts and then stops after a given duration.

Jump to

Keyboard shortcuts

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