Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readMetricsLocked (0.46 sec)

  1. src/runtime/metrics.go

    	// Ensure the map is initialized.
    	initMetrics()
    
    	// Read the metrics.
    	readMetricsLocked(samplesp, len, cap)
    	metricsUnlock()
    }
    
    // readMetricsLocked is the internal, locked portion of readMetrics.
    //
    // Broken out for more robust testing. metricsLock must be held and
    // initMetrics must have been called already.
    func readMetricsLocked(samplesp unsafe.Pointer, len int, cap int) {
    	// Construct a slice from the args.
    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

    	metricsLock()
    	initMetrics()
    
    	systemstack(func() {
    		// Donate the racectx to g0. readMetricsLocked calls into the race detector
    		// via map access.
    		getg().racectx = getg().m.curg.racectx
    
    		// Read the metrics once before in case it allocates and skews the metrics.
    		// readMetricsLocked is designed to only allocate the first time it is called
    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