MCPcopy
hub / github.com/grpc/grpc-go / SetEPS

Method SetEPS

orca/server_metrics.go:281–291  ·  view source on GitHub ↗

SetEPS records a measurement for the EPS metric.

(val float64)

Source from the content-addressed store, hash-verified

279
280// SetEPS records a measurement for the EPS metric.
281func (s *serverMetricsRecorder) SetEPS(val float64) {
282 if val < 0 {
283 if logger.V(2) {
284 logger.Infof("Ignoring EPS value out of range: %v", val)
285 }
286 return
287 }
288 smCopy := copyServerMetrics(s.state.Load())
289 smCopy.EPS = val
290 s.state.Store(smCopy)
291}
292
293// DeleteEPS deletes the relevant server metric to prevent it from being sent.
294func (s *serverMetricsRecorder) DeleteEPS() {

Callers

nothing calls this directly

Calls 4

copyServerMetricsFunction · 0.85
VMethod · 0.65
InfofMethod · 0.65
LoadMethod · 0.45

Tested by

no test coverage detected