go-micro: github.com/micro/go-micro/debug/profile Index | Files | Directories

package profile

import "github.com/micro/go-micro/debug/profile"

Package profile is for profilers


Package Files


type Option Uses

type Option func(o *Options)

func Name Uses

func Name(n string) Option

Name of the profile

type Options Uses

type Options struct {
    // Name to use for the profile
    Name string

type Profile Uses

type Profile interface {
    // Start the profiler
    Start() error
    // Stop the profiler
    Stop() error
    // Name of the profiler
    String() string
var (
    DefaultProfile Profile = new(noop)


httpPackage http enables the http profiler
pprofPackage pprof provides a pprof profiler

Package profile is imported by 5 packages. Updated 2020-08-07. Refresh now. Tools for package owners.