pprof
pprof copied to clipboard
refactor: use gin.IRouter instead of gin.Engine
I thinks it would be better for developer to use gin.IRouter
interface than gin.Engine
.
gin.Engine
is the root router for server. However, there are situations where only the sub-routes obtained after multiple calls to .Group
are passed in the code, that is gin.IRouter
. In such cases, it becomes difficult to bind pprof.