Skip to content

Instantly share code, notes, and snippets.

@comtom
Last active September 27, 2018 19:44

Revisions

  1. comtom renamed this gist Sep 27, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. comtom revised this gist Sep 27, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions pprof.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    #!/bin/bash
    go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
    pprof -http=:6060 -alloc_objects mem.prof
    pprof -http=:6060 cpu.prof
  3. comtom renamed this gist Sep 27, 2018. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. comtom created this gist Sep 27, 2018.
    3 changes: 3 additions & 0 deletions pprof.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    go test -cpuprofile cpu.prof -memprofile mem.prof -bench .
    pprof -http=:6060 -alloc_objects mem.prof
    pprof -http=:6060 cpu.prof