alpha
Login
or
Join now
4uffin.bsky.social
/
core
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
My own copy of Tangled :)
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
knotserver/internal: setup pprof
author
Anirudh Oppiliappan
date
1 year ago
(Mar 8, 2025, 12:02 AM +0200)
commit
29532338
29532338b0370890a93e7f4ac43d2db39d02d8b1
parent
602da44a
602da44ab107e1bb5feb7abff3ebd082ae6f7935
+4
2 changed files
Expand all
Collapse all
Unified
Split
cmd
knotserver
main.go
knotserver
internal.go
+2
cmd/knotserver/main.go
Reviewed
···
11
11
"github.com/sotangled/tangled/knotserver/db"
12
12
"github.com/sotangled/tangled/log"
13
13
"github.com/sotangled/tangled/rbac"
14
14
+
15
15
+
_ "net/http/pprof"
14
16
)
15
17
16
18
func main() {
+2
knotserver/internal.go
Reviewed
···
5
5
"net/http"
6
6
7
7
"github.com/go-chi/chi/v5"
8
8
+
"github.com/go-chi/chi/v5/middleware"
8
9
"github.com/sotangled/tangled/knotserver/db"
9
10
"github.com/sotangled/tangled/rbac"
10
11
)
···
59
60
60
61
r.Get("/push-allowed", h.PushAllowed)
61
62
r.Get("/keys", h.InternalKeys)
63
63
+
r.Mount("/debug", middleware.Profiler())
62
64
63
65
return r
64
66
}