From 007e2de369f9fc26da3237646de14f2af5052ee8 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 22 May 2026 16:54:49 +0200 Subject: initial commit --- pprof.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pprof.go (limited to 'pprof.go') diff --git a/pprof.go b/pprof.go new file mode 100644 index 0000000..bc710e0 --- /dev/null +++ b/pprof.go @@ -0,0 +1,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) +} -- cgit v1.3.1