Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for metricsLock (0.16 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
    }
    
    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

    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)
Back to top