pprof

package
v0.0.0-...-1f59db8 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

pprof

  1. Run application

    go run main.go
    
  2. Use Vegeta to generate some traffic

    echo "GET http://localhost:8080" | vegeta attack -duration=30s
    
  3. Use pprof tool to visualise profiling

    go tool pprof cpu.prof
    
  4. Get same info running

    go tool pprof -top http://localhost:8080/debug/pprof/heap
    

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