Documentation

Overview

    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.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func NewPProfService

    func NewPProfService() interface{}

      NewPProfService returns a new pprof service implementation.

      func PprofProxy

      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".

        Types

        This section is empty.

        Source Files