pprof

package
v2.6.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmdline

func Cmdline(w http.ResponseWriter, r *http.Request)

Cmdline responds with the running program's command line, with arguments separated by NUL bytes. The package initialization registers it as /debug/pprof/cmdline.

func Profile

func Profile(w http.ResponseWriter, r *http.Request)

Profile responds with the pprof-formatted cpu profile. The package initialization registers it as /debug/pprof/profile.

func ProfileHeap

func ProfileHeap(w http.ResponseWriter, r *http.Request)

func Symbol

func Symbol(w http.ResponseWriter, r *http.Request)

Symbol looks up the program counters listed in the request, responding with a table mapping program counters to function names. The package initialization registers it as /debug/pprof/symbol.

Types

type MemStats

type MemStats struct {
	CurrentAllocatedBytes        uint64
	HeapSize                     uint64
	CentralCacheFreeBytes        uint64
	TransferCacheFreeBytes       uint64
	ThreadCacheFreeBytes         uint64
	PageheapFreeBytes            uint64
	PageheapUnmappedBytes        uint64
	MaxTotalThreadCacheBytes     uint64
	CurrentTotalThreadCacheBytes uint64
	AggressiveMemoryDecommit     uint64
}

func GetMemStats

func GetMemStats() MemStats

Jump to

Keyboard shortcuts

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