Skip to content

Commit

Permalink
add pprof
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleSanderson authored Nov 24, 2024
1 parent fa4e217 commit 0cfb968
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ import (
"github.com/titlerr/upgraderr/pkg/timecache"
"github.com/titlerr/upgraderr/pkg/ttlcache"
bolt "go.etcd.io/bbolt"

_ "net/http/pprof"
)

type Entry struct {
Expand Down Expand Up @@ -103,6 +105,10 @@ var globalTime = timecache.New(timecache.Options{})
func main() {
initDatabase()

go func() {
http.ListenAndServe("localhost:6060", nil)
}()

r := chi.NewRouter()

r.Use(middleware.RequestID)
Expand Down

0 comments on commit 0cfb968

Please sign in to comment.