package
2.0.1+incompatible
Repository: https://github.com/accelbyte/go-restful-plugins.git
Documentation: pkg.go.dev

# README

pprof Routes

This package adds pprof profiling routes to go-restful apps.

Usage

Importing

import "github.com/AccelByte/go-restful-plugins/pkg/profiling/pprof"

Add pprof routes

pprof.Route("/basepath")

Now the pprof paths can be accessed from http://host:port/basepath/debug/pprof.

Reference: https://golang.org/pkg/net/http/pprof/

# Functions

Route registers pprof routes based on the basepath.