aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dashboard/app/app.yaml3
-rw-r--r--dashboard/app/main.go1
2 files changed, 3 insertions, 1 deletions
diff --git a/dashboard/app/app.yaml b/dashboard/app/app.yaml
index c30738886..04e3941f7 100644
--- a/dashboard/app/app.yaml
+++ b/dashboard/app/app.yaml
@@ -25,7 +25,8 @@ handlers:
- url: /static
static_dir: dashboard/app/static
secure: always
-- url: /(admin|cron/.*)
+# debug is for net/http/pprof handlers.
+- url: /(admin|debug|cron/.*)
script: auto
login: admin
secure: always
diff --git a/dashboard/app/main.go b/dashboard/app/main.go
index 3b1749a45..dbf95d502 100644
--- a/dashboard/app/main.go
+++ b/dashboard/app/main.go
@@ -10,6 +10,7 @@ import (
"fmt"
"html/template"
"net/http"
+ _ "net/http/pprof" // app.yaml restricts this to admins
"net/url"
"os"
"regexp"