mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-24 02:11:54 +01:00
fix serialization, added benchmark tests, updated next release docs
This commit is contained in:
@@ -7,10 +7,13 @@ import (
|
||||
"net/http"
|
||||
_ "net/http/pprof"
|
||||
"runtime"
|
||||
"runtime/debug"
|
||||
)
|
||||
|
||||
func initProfiling() {
|
||||
runtime.GOMAXPROCS(2)
|
||||
debug.SetMemoryLimit(100 * 1024 * 1024)
|
||||
debug.SetMaxStack(15 * 1024 * 1024)
|
||||
go func() {
|
||||
log.Println(http.ListenAndServe(":7777", nil))
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user