add net/http/pprof profiler

This commit is contained in:
Asim Aslam
2019-12-08 20:31:16 +00:00
parent a9be1288d2
commit e2b2a30668
4 changed files with 105 additions and 6 deletions

View File

@@ -107,6 +107,10 @@ func (p *profiler) Stop() error {
}
}
func (p *profiler) String() string {
return "pprof"
}
func NewProfile(opts ...profile.Option) profile.Profile {
var options profile.Options
for _, o := range opts {