tangled
alpha
login
or
join now
veryroundbird.house
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
knotserver/internal: setup pprof
anirudh.fi
1 year ago
c5f06849
620db209
+4
2 changed files
expand all
collapse all
unified
split
cmd
knotserver
main.go
knotserver
internal.go
+2
cmd/knotserver/main.go
···
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
···
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
}