Add pprof logging

This commit is contained in:
Melon 2023-08-25 23:28:06 +01:00
parent 8c4aa67e7b
commit d19050060a
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -22,6 +22,7 @@ import (
"io/fs"
"log"
"net/http"
_ "net/http/pprof"
"os"
"path/filepath"
)
@ -156,6 +157,10 @@ func normalLoad(startUp startUpConfig, wd string) {
go utils.RunBackgroundHttps("HTTPS", srvHttps)
}
go func() {
log.Println(http.ListenAndServe("localhost:6600", nil))
}()
exit_reload.ExitReload("Violet", func() {
allCompilables.Compile()
}, func() {