- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for metricsLock (0.31 sec)
-
src/runtime/metrics.go
// //go:linkname readMetricNames runtime/metrics_test.runtime_readMetricNames func readMetricNames() []string { metricsLock() initMetrics() n := len(metrics) metricsUnlock() list := make([]string, 0, n) metricsLock() for name := range metrics { list = append(list, name) } metricsUnlock() return list }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 08 21:03:13 UTC 2024 - 26K bytes - Viewed (0) -
src/runtime/export_test.go
func ReadMetricsSlow(memStats *MemStats, samplesp unsafe.Pointer, len, cap int) { stw := stopTheWorld(stwForTestReadMetricsSlow) // Initialize the metrics beforehand because this could // allocate and skew the stats. metricsLock() initMetrics() systemstack(func() { // Donate the racectx to g0. readMetricsLocked calls into the race detector // via map access. getg().racectx = getg().m.curg.racectx
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 17:50:53 UTC 2024 - 46.1K bytes - Viewed (0) -
pkg/volume/metrics_block.go
servermetrics "k8s.io/kubernetes/pkg/kubelet/server/metrics" ) var _ MetricsProvider = &metricsBlock{} // metricsBlock represents a MetricsProvider that detects the size of the // BlockMode Volume. type metricsBlock struct { // the device node where the volume is attached to. device string } // NewMetricsStatfs creates a new metricsBlock with the device node of the // Volume. func NewMetricsBlock(device string) MetricsProvider {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 19 14:33:37 UTC 2022 - 2.5K bytes - Viewed (0) -
pkg/volume/metrics_block_linux_test.go
expected := &Metrics{} if !volumetest.MetricsEqualIgnoreTimestamp(actual, expected) { t.Errorf("Expected empty Metrics from uninitialized MetricsBlock, actual %v", *actual) } if err == nil { t.Errorf("Expected error when calling GetMetrics on uninitialized MetricsBlock, actual nil") } metrics = NewMetricsBlock("/nonexistent/device/node") actual, err = metrics.GetMetrics()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 1.6K bytes - Viewed (0)