autopprof - 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.

我来评几句
登录后评论

已发表评论数()

相关站点

+订阅
热门文章