mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
17 lines
209 B
Go
17 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))
|
|
}()
|
|
}
|