Skip to content

Commit

Permalink
Fixes kubeflow#37, add pprof support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirajsb committed Oct 5, 2023
1 parent ab5d90a commit e3df569
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 @@ -3,10 +3,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 e3df569

Please sign in to comment.