torch: Index | Files

package pprof

import ""


Package Files

parser.go pprof.go select_sample.go

func GetRaw Uses

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

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

func ParseRaw Uses

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

ParseRaw parses the raw pprof output and returns call stacks.

func SelectSample Uses

func SelectSample(args, names []string) int

SelectSample returns the index of the sample to use given the sample names.

type Options Uses

type Options struct {
    BaseURL     string   `short:"u" long:"url" default:"http://localhost:8080" description:"Base URL of your Go program"`
    URLSuffix   string   `long:"suffix" default:"/debug/pprof/profile" description:"URL path of pprof profile"`
    BinaryFile  string   `short:"b" long:"binaryinput" description:"File path of previously saved binary profile. (binary profile is anything accepted by"`
    BinaryName  string   `long:"binaryname" description:"File path of the binary that the binaryinput is for, used for pprof inputs"`
    TimeSeconds int      `short:"t" long:"seconds" default:"30" description:"Number of seconds to profile for"`
    ExtraArgs   []string `long:"pprofArgs"  description:"Extra arguments for pprof"`
    TimeAlias   *int     `hidden:"true" long:"time" description:"Alias for backwards compatibility"`

Options are parameters for pprof.

Package pprof imports 11 packages (graph). Updated 2017-09-14. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).