Skip to content

Commit

Permalink
add debug pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
zu1k committed Sep 5, 2020
1 parent 30e46c6 commit 5b59998
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 5b59998

Please sign in to comment.