add debug pprof

This commit is contained in:
zu1k
2020-09-05 21:08:58 +08:00
parent 30e46c6ace
commit 5b5999834d

View File

@@ -3,19 +3,24 @@ package main
import (
"flag"
"fmt"
"net/http"
_ "net/http/pprof"
"os"
"github.com/zu1k/proxypool/internal/database"
"github.com/zu1k/proxypool/api"
"github.com/zu1k/proxypool/internal/app"
"github.com/zu1k/proxypool/internal/cron"
"github.com/zu1k/proxypool/internal/database"
"github.com/zu1k/proxypool/pkg/proxy"
)
var configFilePath = ""
func main() {
go func() {
http.ListenAndServe("0.0.0.0:6060", nil)
}()
flag.StringVar(&configFilePath, "c", "", "path to config file: config.yaml")
flag.Parse()