blob: bc710e0004b3fa290a3b7c2b2a2d400fdf5d3f70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//go:build.sh pprof
package main
import (
"net/http"
"runtime"
)
func init() {
runtime.SetBlockProfileRate(1)
runtime.SetMutexProfileFraction(1)
go http.ListenAndServe("localhost:6060", nil)
}
|