v.io: v.io/x/ref/services/internal/pproflib Index | Files

package pproflib

import "v.io/x/ref/services/internal/pproflib"

Package pproflib defines a client-side proxy and server-side implementation of the v.io/v23/services/pprof interface.

It is functionally equivalent to http://golang.org/pkg/net/http/pprof/, except that the data comes from a remote vanadium server, and the handlers are not registered in DefaultServeMux.


Package Files

proxy.go server.go

func NewPProfService Uses

func NewPProfService() interface{}

NewPProfService returns a new pprof service implementation.

func PprofProxy Uses

func PprofProxy(ctx *context.T, pathPrefix, name string) http.Handler

PprofProxy returns an http.Handler implements to serve profile information of a remote process with the vanadium object name 'name'.

The handler assumes that it is serving paths under "pathPrefix".

Package pproflib imports 16 packages (graph) and is imported by 6 packages. Updated 2021-01-19. Refresh now. Tools for package owners.