- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for SinceInSeconds (0.11 sec)
-
pkg/proxy/nftables/proxier.go
// Below this point we will not return until we try to write the nftables rules. // // Keep track of how long syncs take. start := time.Now() defer func() { metrics.SyncProxyRulesLatency.Observe(metrics.SinceInSeconds(start)) proxier.logger.V(2).Info("SyncProxyRules complete", "elapsed", time.Since(start)) }() serviceUpdateResult := proxier.svcPortMap.Update(proxier.serviceChanges)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 08 13:48:54 UTC 2024 - 55.5K bytes - Viewed (0) -
pkg/scheduler/internal/queue/scheduling_queue.go
var s *framework.Status pod := pInfo.Pod startTime := p.clock.Now() defer func() { metrics.FrameworkExtensionPointDuration.WithLabelValues(preEnqueue, s.Code().String(), pod.Spec.SchedulerName).Observe(metrics.SinceInSeconds(startTime)) }() shouldRecordMetric := rand.Intn(100) < p.pluginMetricsSamplePercent for _, pl := range p.preEnqueuePluginMap[pod.Spec.SchedulerName] { s = p.runPreEnqueuePlugin(ctx, pl, pod, shouldRecordMetric)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 12 13:26:09 UTC 2024 - 61.4K bytes - Viewed (0)