- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FlushMetrics (0.14 sec)
-
pkg/scheduler/metrics/metric_recorder.go
for { select { case <-r.stopCh: close(r.IsStoppedCh) return default: } r.FlushMetrics() time.Sleep(r.interval) } } // FlushMetrics tries to clean up the bufferCh by reading at most bufferSize metrics. func (r *MetricAsyncRecorder) FlushMetrics() { for i := 0; i < r.bufferSize; i++ { select { case m := <-r.bufferCh:
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 16 07:27:08 UTC 2023 - 4.4K bytes - Viewed (0) -
pkg/scheduler/framework/runtime/framework_test.go
// Stop the goroutine which records metrics and ensure it's stopped. cancel() <-recorder.IsStoppedCh // Try to clean up the metrics buffer again in case it's not empty. recorder.FlushMetrics() collectAndCompareFrameworkMetrics(t, tt.wantExtensionPoint, tt.wantStatus) collectAndComparePluginMetrics(t, tt.wantExtensionPoint, testPlugin, tt.wantStatus) }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 17 09:07:27 UTC 2024 - 103K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 146.9K bytes - Viewed (0)