mirror of
https://github.com/1f349/violet.git
synced 2024-11-21 19:01:39 +00:00
Add pprof logging
This commit is contained in:
parent
8c4aa67e7b
commit
d19050060a
@ -22,6 +22,7 @@ import (
|
|||||||
"io/fs"
|
"io/fs"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
_ "net/http/pprof"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
@ -156,6 +157,10 @@ func normalLoad(startUp startUpConfig, wd string) {
|
|||||||
go utils.RunBackgroundHttps("HTTPS", srvHttps)
|
go utils.RunBackgroundHttps("HTTPS", srvHttps)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
go func() {
|
||||||
|
log.Println(http.ListenAndServe("localhost:6600", nil))
|
||||||
|
}()
|
||||||
|
|
||||||
exit_reload.ExitReload("Violet", func() {
|
exit_reload.ExitReload("Violet", func() {
|
||||||
allCompilables.Compile()
|
allCompilables.Compile()
|
||||||
}, func() {
|
}, func() {
|
||||||
|
Loading…
Reference in New Issue
Block a user