Package profiling exposes methods to manage profiling within gRPC.
Notice: This package is EXPERIMENTAL and may be changed or removed in a later release.
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.