blob: f044d0a462c8e742af848f1089c3a3de12b8854d [file] [log] [blame]
/******************************************************
# MAINTAINER : Alex Stocks
# LICENCE : Apache License 2.0
# EMAIL : alexstocks@foxmail.com
# MOD : 2019-07-25
******************************************************/
package util
import (
"fmt"
"net/http"
_ "net/http/pprof"
)
func Profiling(port int) {
go func() {
http.ListenAndServe(fmt.Sprintf(":%d", port), nil)
}()
}