From 9d5f5abef4a2b7881c2316cf994688b8973b2a3b Mon Sep 17 00:00:00 2001 From: sammyette Date: Mon, 18 Dec 2023 21:31:04 -0400 Subject: [PATCH] feat: add pprof --- pprof.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 pprof.go diff --git a/pprof.go b/pprof.go new file mode 100644 index 0000000..977eeb0 --- /dev/null +++ b/pprof.go @@ -0,0 +1,14 @@ +// +build pprof + +package main + +import ( + _ "net/http/pprof" + "net/http" +) + +func init() { + go func() { + http.ListenAndServe("localhost:8080", nil) + }() +}