mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 07:13:50 +01:00
18 lines
209 B
Go
18 lines
209 B
Go
//go:build pprof
|
|
|
|
package main
|
|
|
|
import (
|
|
"log"
|
|
"net/http"
|
|
_ "net/http/pprof"
|
|
"runtime"
|
|
)
|
|
|
|
func initProfiling() {
|
|
runtime.GOMAXPROCS(2)
|
|
go func() {
|
|
log.Println(http.ListenAndServe(":7777", nil))
|
|
}()
|
|
}
|