aboutsummaryrefslogtreecommitdiff
path: root/core/setup/pprof.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/setup/pprof.go')
-rw-r--r--core/setup/pprof.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/setup/pprof.go b/core/setup/pprof.go
index e202bfc00..cf6b49636 100644
--- a/core/setup/pprof.go
+++ b/core/setup/pprof.go
@@ -27,6 +27,7 @@ func PProf(c *Controller) (middleware.Middleware, error) {
handler := &pprof.Handler{}
pprofOnce.Do(func() {
c.Startup = append(c.Startup, handler.Start)
+ c.Shutdown = append(c.Shutdown, handler.Shutdown)
})
return func(next middleware.Handler) middleware.Handler {