query pprof debug info key:heap goroutine threadcreate block
(ctx Context)
| 24 | // query pprof debug info |
| 25 | // key:heap goroutine threadcreate block |
| 26 | func showPProf(ctx Context) error { |
| 27 | querykey := ctx.GetRouterName("key") |
| 28 | runtime.GC() |
| 29 | return pprof.Lookup(querykey).WriteTo(ctx.Response().Writer(), 1) |
| 30 | } |
| 31 | |
| 32 | func freeMemory(ctx Context) error { |
| 33 | debug.FreeOSMemory() |
nothing calls this directly
no test coverage detected