package
1.72.0-dev
Repository: https://github.com/grpc/grpc-go.git
Documentation: pkg.go.dev

# Packages

Package buffer provides a high-performant lock free implementation of a circular buffer used by the profiling code.

# Functions

Enable turns profiling on and off.
InitStats initializes all the relevant Stat objects.
IsEnabled returns whether or not profiling is enabled.
NewStat creates and returns a new Stat object.
NewTimer creates and returns a new Timer object.

# Variables

StreamStats is a CircularBuffer containing data from the last N RPC calls served, where N is set by the user.

# Structs

A Stat is a collection of Timers that represent timing information for different components within this Stat.
A Timer represents the wall-clock beginning and ending of a logical operation.