gdebug

package
v0.0.0-...-04ff805 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureToFile

func CaptureToFile(profile string, cpuCapDur time.Duration) (string, error)

CaptureToFile captures profile and save it to file. Note: go tool pprof required. FIXME I am not sure its result equals to web page output results.

func ListenAndServe

func ListenAndServe(listen string) error

ListenAndServe starts a debug server with web ui. Visit http://listen to see it. Note: don't start it if not necessary.

func VerifyProfile

func VerifyProfile(b []byte) error

VerifyProfile verify if b is valid profile content.

Types

type Profile

type Profile profile.Profile

func Capture

func Capture(profile string, cpuCapDur time.Duration) (*Profile, error)

Capture captures profile and returns content. FIXME I am not sure its result equals to web page output results.

func ParseProfile

func ParseProfile(b []byte) (*Profile, error)

ParseProfile parses buffer into Profile

Jump to

Keyboard shortcuts

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