MCPcopy Create free account
hub / github.com/ankorstore/yokai / PprofBlockHandler

Function PprofBlockHandler

httpserver/handler/pprof_block.go:10–16  ·  view source on GitHub ↗

PprofBlockHandler is an [echo.HandlerFunc] for pprof block.

()

Source from the content-addressed store, hash-verified

8
9// PprofBlockHandler is an [echo.HandlerFunc] for pprof block.
10func PprofBlockHandler() echo.HandlerFunc {
11 return func(c echo.Context) error {
12 pprof.Handler("block").ServeHTTP(c.Response().Writer, c.Request())
13
14 return nil
15 }
16}

Callers

nothing calls this directly

Calls 1

HandlerMethod · 0.65

Tested by

no test coverage detected