Skip to content

Commit

Permalink
Fixes #37, add pprof support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirajsb committed Sep 27, 2023
1 parent 445c30d commit 675a709
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,18 @@ package main
import (
"github.com/golang/glog"
"github.com/opendatahub-io/model-registry/cmd"
"log"
"net/http"
_ "net/http/pprof"
)

func main() {
defer glog.Flush()

// start pprof server on 6060
go func() {
log.Println(http.ListenAndServe("localhost:6060", nil))
}()

cmd.Execute()
}

0 comments on commit 675a709

Please sign in to comment.