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.

          Source Files