Skip to content

Commit

Permalink
Add pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
mingyech committed Feb 13, 2024
1 parent 0b6aa3c commit 0b4c945
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/application/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"flag"
"net"
"net/http"
_ "net/http/pprof"
"os"
"os/signal"
Expand Down Expand Up @@ -32,6 +33,9 @@ var enabledTransports = map[pb.TransportType]cj.Transport{
}

func main() {
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()
var err error
var zmqAddress string
flag.StringVar(&zmqAddress, "zmq-address", "ipc://@zmq-proxy", "Address of ZMQ proxy")
Expand Down

0 comments on commit 0b4c945

Please sign in to comment.