pprof

command
v0.1.34 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 8 Imported by: 0

README

Memory leaks detection test

Case

Add a testing scenario to the runner function.

Start

go run ./cmd/pprof -strategy saml

and wait some time, depending on a testing scenario.

If the memory usage is stable that's great.

Profiling

Fetch memory heap:

curl -sK -v http://localhost:6868/debug/pprof/heap > heap.out

Check a profile snapshot:

go tool pprof heap.out

When type web and observe the memory heap graph for anything weird.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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