GitHub: GoLang/profile

pprof experiments

Run the pprof in the benchmark

go test -bench=. ./profile/hw/...

# with cpu and mem profile
go test -cpuprofile /tmp/cpu.prof -memprofile /tmp/mem.prof -bench=. ./profile/hw/...

# view the profile
go tool pprof /tmp/cpu.prof 
# (pprof) web
# (pprof) 

Run the pprof in the server

go tool pprof http://localhost:6060/debug/pprof/heap
# (pprof) web

Recent changes

  • 2024-02-29 6fdf65d reorganize stuff

Categories: experiments, Go

Tags: golang

← Previous · Next →