pprofutil

package
v0.0.0-...-05c1bb4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2018 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package pprofutil contains helpers for runtime/pprof.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelHandler

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

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL