From 9ad0781831a34268083ec024f84902cf9da1f6d0 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 2 Jul 2020 15:49:55 +0100 Subject: [PATCH] pprof --- cmd/dendrite-demo-yggdrasil/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go index cef34c7ed..32d6b94f3 100644 --- a/cmd/dendrite-demo-yggdrasil/main.go +++ b/cmd/dendrite-demo-yggdrasil/main.go @@ -31,6 +31,7 @@ import ( "github.com/matrix-org/dendrite/eduserver" "github.com/matrix-org/dendrite/eduserver/cache" "github.com/matrix-org/dendrite/federationsender" + "github.com/matrix-org/dendrite/internal" "github.com/matrix-org/dendrite/internal/config" "github.com/matrix-org/dendrite/internal/httputil" "github.com/matrix-org/dendrite/internal/setup" @@ -51,6 +52,7 @@ var ( // nolint:gocyclo func main() { flag.Parse() + internal.SetupPprof() ygg, err := yggconn.Setup(*instanceName, *instancePeer, ".") if err != nil {