pprof

package
v0.0.0-...-85ad6ad Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRaw

func GetRaw(opts Options) ([]byte, error)

GetRaw returns the raw output from pprof for the given options.

func ParseRaw

func ParseRaw(input []byte) ([]*stack.Sample, error)

ParseRaw parses the raw pprof output and returns call stacks.

Types

type Options

type Options struct {
	BaseURL     string   `short:"u" long:"url" default:"http://localhost:8080" description:"Base URL of your Go program"`
	URLSuffix   string   `short:"s" long:"suffix" default:"/debug/pprof/profile" description:"URL path of pprof profile"`
	BinaryFile  string   `` /* 158-byte string literal not displayed */
	BinaryName  string   `long:"binaryname" description:"File path of the binary that the binaryinput is for, used for pprof inputs"`
	TimeSeconds int      `short:"t" long:"time" default:"30" description:"Duration to profile for"`
	ExtraArgs   []string `long:"pprofArgs"  description:"Extra arguments for pprof"`
}

Options are parameters for pprof.

Jump to

Keyboard shortcuts

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