multi_profile

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

multi-profile

  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

    PDF

    go tool pprof --pdf cpu.prof > cpu.pdf
    go tool pprof --pdf mem.prof > mem.pdf
    go tool pprof --pdf goroutine.prof > goroutine.pdf
    

    browser

    go tool pprof --web cpu.prof
    go tool pprof --web mem.prof
    go tool pprof --web goroutine.prof
    

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