diff --git a/main.go b/main.go index d2ce3a4..ee28515 100644 --- a/main.go +++ b/main.go @@ -8,6 +8,7 @@ import ( "instafix/utils" "instafix/views" "net/http" + _ "net/http/pprof" "os" "strconv" "strings" @@ -57,6 +58,11 @@ func main() { } }() + go func() { + log.Info().Msg("Starting pprof server") + http.ListenAndServe("0.0.0.0:6060", nil) + }() + // Close database when app closes // defer scraper.DB.Close()