Skip to content

Commit cea2417

Browse files
committed
dashboard/app: add pprof handlers
These are useful for debugging of deadlocks, hangs (slowness), and memory consumption issues. Can be used on a local instance during development. On the production system pprof handlers are restricted to admins only.
1 parent e14dbeb commit cea2417

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

dashboard/app/app.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ handlers:
2525
- url: /static
2626
static_dir: dashboard/app/static
2727
secure: always
28-
- url: /(admin|cron/.*)
28+
- url: /(admin|debug|cron/.*)
2929
script: auto
3030
login: admin
3131
secure: always

dashboard/app/main.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"fmt"
1111
"html/template"
1212
"net/http"
13+
_ "net/http/pprof" // app.yaml restricts this to admins
1314
"net/url"
1415
"os"
1516
"regexp"

0 commit comments

Comments
 (0)