pprof

package
v0.0.0-...-df0a1ee Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package pprof offers tools to easily generate pprof-like profiles for events with a count and a duration. It is extracted from cmd/trace.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildProfile

func BuildProfile(prof map[uint64]Record) *profile.Profile

BuildProfile creates a profile from a set of Record. The key is irrelevant.

func LoadTrace

func LoadTrace(traceFile, programBinary string) ([]*trace.Event, error)

Types

type Record

type Record struct {
	Stk  []*trace.Frame
	N    uint64
	Time int64
}

Record represents one entry in pprof-like profiles.

Jump to

Keyboard shortcuts

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