package profiling

import "google.golang.org/grpc/profiling"

Package profiling exposes methods to manage profiling within gRPC.

This package and all its methods are EXPERIMENTAL.

Index

Functions

func Enable

func Enable(enabled bool)

Enable turns profiling on and off. This operation is safe for concurrent access from different goroutines.

Note that this is the only operation that's accessible through the publicly exposed profiling package. Everything else (such as retrieving stats) must be done through the profiling service. This is allowed so that users can use heuristics to turn profiling on and off automatically.

Source Files

profiling.go

Directories

PathSynopsis
profiling/cmdBinary cmd is a command-line tool for profiling management.
profiling/proto
profiling/servicePackage service defines methods to register a gRPC client/service for a profiling service that is exposed in the same server.
Version
v1.28.1
Published
Apr 6, 2020
Platform
js/wasm
Imports
1 packages
Last checked
8 minutes ago

Tools for package owners.