goutil: github.com/rakyll/goutil/pprofutil Index | Files

package pprofutil

import "github.com/rakyll/goutil/pprofutil"

Package pprofutil contains helpers for runtime/pprof.

Index

Package Files

grpc.go http.go

func LabelHandler Uses

func LabelHandler(h http.Handler) http.Handler

LabelHandler adds "http-path" profiler label to the given handler. If you want to start new goroutines from h, propagate the labels by passing handler's incoming request's context.

func LabelHandlerFunc Uses

func LabelHandlerFunc(fn func(w http.ResponseWriter, r *http.Request)) http.Handler

LabelHandlerFunc adds "http-path" profiler label to the given handler function. If you want to start new goroutines from h, propagate the labels by passing r.Context().

func UnaryServerInterceptor Uses

func UnaryServerInterceptor() grpc.UnaryServerInterceptor

UnaryServerInterceptor allows you to profile gRPC server handlers.

Prrof data can be filtered by "grpc.method" tags once instrumented by this interceptor.

Package pprofutil imports 5 packages (graph). Updated 2017-07-10. Refresh now. Tools for package owners.