pprofReader

package
v0.0.0-...-d2aa527 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2014 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

This package is designed to read the pprof format as described: http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile-fileformat.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	Samples ProfileSamples
	// contains filtered or unexported fields
}

func ReadProfile

func ReadProfile(r io.Reader) (p *Profile, err error)

Read a profile from disk or from a http response body

type ProfileSamples

type ProfileSamples []Sample

func (ProfileSamples) UniqueFunctions

func (p ProfileSamples) UniqueFunctions() []uint64

returns unique function pointers (not nessecarily unique functions)

type Sample

type Sample struct {
	// number of times the sample was collected
	SampleCount uint64

	// the function pointer stack
	CallStack []uint64
}

func (Sample) IsEnd

func (s Sample) IsEnd() bool

See documentation on the Binary Trailer of the format

Jump to

Keyboard shortcuts

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