Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for metricsUnlock (0.38 sec)

  1. 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
    }
    
    // readMetrics is the implementation of runtime/metrics.Read.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 21:03:13 UTC 2024
    - 26K bytes
    - Viewed (0)
  2. src/runtime/export_test.go

    		// the stack allocator and adjust metrics between there and here.
    		readMetricsLocked(samplesp, len, cap)
    
    		// Undo the donation.
    		getg().racectx = 0
    	})
    	metricsUnlock()
    
    	startTheWorld(stw)
    }
    
    var DoubleCheckReadMemStats = &doubleCheckReadMemStats
    
    // ReadMemStatsSlow returns both the runtime-computed MemStats and
    // MemStats accumulated by scanning the heap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  3. 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)
Back to top