github

rakyll / autopprof

  • суббота, 24 ноября 2018 г. в 00:15:20
https://github.com/rakyll/autopprof

Go
Pprof made easy at development time for Go



autopprof

Pprof made easy at development time.

Guide

Add autopprof.Capture to your main function.

import "github.com/rakyll/autopprof"

autopprof.Capture(autopprof.CPUProfile{
    Duration: 15 * time.Second,
})

Run your program and send SIGQUIT to the process (or press CTRL+\).

Profile capturing will start. Pprof UI will be started once capture is completed.