mirror of
https://github.com/1f349/violet.git
synced 2024-11-21 10:51:40 +00:00
Add pprof logging
This commit is contained in:
parent
8c4aa67e7b
commit
d19050060a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user