Measure cpuprofile for endless program.
- create cpuprofile file
- StartCPUProfile with this file
- Create a channel to listen signal to accept signal
Usage:
- go build .
- run programming,
./pprof_performance
- generate svg for torch,
go-torch ./pprof_performance cpuprofile
- open svg with browser:
open torch.svg