pprof

package
v4.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 11 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 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