From 416c432139536d8852fbc68cf458a2e509f560a5 Mon Sep 17 00:00:00 2001 From: James Hamlin Date: Fri, 19 Apr 2024 18:56:05 -0700 Subject: [PATCH] Set up pprof Signed-off-by: James Hamlin --- main.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/main.go b/main.go index 61f8fa0..9fd20ff 100644 --- a/main.go +++ b/main.go @@ -6,8 +6,18 @@ import ( "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/options" "github.com/wailsapp/wails/v2/pkg/options/assetserver" + + // pprof + + _ "net/http/pprof" ) +// func init() { +// go func() { +// log.Println(http.ListenAndServe("localhost:6060", nil)) +// }() +// } + //go:embed all:frontend/dist var assets embed.FS