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

Side by Side Diff: logdog/appengine/cmd/coordinator/backend/main.go

Issue 2588643002: Enable AppEngine profiling endpoints. (Closed)
Patch Set: Actually use the right notation. 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 unified diff | Download patch
« no previous file with comments | « no previous file | logdog/appengine/cmd/coordinator/backend/module.cfg » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The LUCI Authors. All rights reserved. 1 // Copyright 2015 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0 2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file. 3 // that can be found in the LICENSE file.
4 4
5 package module 5 package module
6 6
7 import ( 7 import (
8 "net/http" 8 "net/http"
9 9
10 // Importing pprof implicitly installs "/debug/*" profiling handlers.
11 _ "net/http/pprof"
12
10 "github.com/luci/luci-go/appengine/gaemiddleware" 13 "github.com/luci/luci-go/appengine/gaemiddleware"
11 "github.com/luci/luci-go/logdog/appengine/coordinator" 14 "github.com/luci/luci-go/logdog/appengine/coordinator"
12 "github.com/luci/luci-go/server/router" 15 "github.com/luci/luci-go/server/router"
13 "github.com/luci/luci-go/tumble" 16 "github.com/luci/luci-go/tumble"
14 17
15 // Include mutations package so its Mutations will register with tumble via 18 // Include mutations package so its Mutations will register with tumble via
16 // init(). 19 // init().
17 _ "github.com/luci/luci-go/logdog/appengine/coordinator/mutations" 20 _ "github.com/luci/luci-go/logdog/appengine/coordinator/mutations"
18 ) 21 )
19 22
20 func init() { 23 func init() {
21 tmb := tumble.Service{} 24 tmb := tumble.Service{}
22 25
23 r := router.New() 26 r := router.New()
24 base := gaemiddleware.BaseProd().Extend(coordinator.ProdCoordinatorServi ce) 27 base := gaemiddleware.BaseProd().Extend(coordinator.ProdCoordinatorServi ce)
25 tmb.InstallHandlers(r, base) 28 tmb.InstallHandlers(r, base)
26 gaemiddleware.InstallHandlers(r, base) 29 gaemiddleware.InstallHandlers(r, base)
27 30
28 http.Handle("/", r) 31 http.Handle("/", r)
29 } 32 }
OLDNEW
« no previous file with comments | « no previous file | logdog/appengine/cmd/coordinator/backend/module.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698