Skip to content

Commit

Permalink
pprofの設定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
p1ass committed Sep 12, 2020
1 parent e5365f4 commit 5c23b65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import (
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"github.com/labstack/gommon/log"
_ "net/http/pprof"
)

const Limit = 20
Expand Down Expand Up @@ -248,6 +249,9 @@ func main() {
e.Use(middleware.Logger())
e.Use(middleware.Recover())

// pprof
e.GET("/debug/pprof/*", echo.WrapHandler(http.DefaultServeMux))

// Initialize
e.POST("/initialize", initialize)

Expand Down

0 comments on commit 5c23b65

Please sign in to comment.