Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: appengine/gaemiddleware/routes.go

Issue 2588643002: Enable AppEngine profiling endpoints. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/gaemiddleware/routes.go
diff --git a/appengine/gaemiddleware/routes.go b/appengine/gaemiddleware/routes.go
index d4237087795b608cc125a91c8566fc3f7dbb9802..cefc78a7e3008eed9157733e083f97a638d7128b 100644
--- a/appengine/gaemiddleware/routes.go
+++ b/appengine/gaemiddleware/routes.go
@@ -5,6 +5,8 @@
package gaemiddleware
import (
+ "github.com/luci/luci-go/common/runtime/profiling"
+ "github.com/luci/luci-go/server/auth"
"github.com/luci/luci-go/server/router"
"github.com/luci/luci-go/server/settings/admin"
@@ -28,4 +30,8 @@ func InstallHandlers(r *router.Router, base router.MiddlewareChain) {
gaeauth.InstallHandlers(r, base)
tsmon.InstallHandlers(r, base)
admin.InstallHandlers(r, base, &gaeauth.UsersAPIAuthMethod{})
+
+ profiling.InstallHandlers(r, base.Extend(
+ auth.Autologin,
+ RequireSuperuser))
}

Powered by Google App Engine
This is Rietveld 408576698