Skip to content

Files

Latest commit

071c8e7 · Mar 16, 2018

History

History

pprof_performance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 16, 2018
Mar 16, 2018
Mar 16, 2018

pprof performance

Measure cpuprofile for endless program.

  1. create cpuprofile file
  2. StartCPUProfile with this file
  3. Create a channel to listen signal to accept signal

Usage:

  1. go build .
  2. run programming, ./pprof_performance
  3. generate svg for torch, go-torch ./pprof_performance cpuprofile
  4. open svg with browser: open torch.svg