Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ReadMetricsSlow (0.21 sec)

  1. src/internal/trace/oldtrace.go

    	addBuiltin(sSTWGOMAXPROCS, "GOMAXPROCS")
    	addBuiltin(sSTWStartTrace, "start trace")
    	addBuiltin(sSTWStopTrace, "stop trace")
    	addBuiltin(sSTWCountPagesInUse, "CountPagesInUse (test)")
    	addBuiltin(sSTWReadMetricsSlow, "ReadMetricsSlow (test)")
    	addBuiltin(sSTWReadMemStatsSlow, "ReadMemStatsSlow (test)")
    	addBuiltin(sSTWPageCachePagesLeaked, "PageCachePagesLeaked (test)")
    	addBuiltin(sSTWResetDebugLog, "ResetDebugLog (test)")
    
    	if addErr != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  2. src/runtime/metrics_test.go

    	// Tests whether readMetrics produces values aligning
    	// with ReadMemStats while the world is stopped.
    	var mstats runtime.MemStats
    	_, samples := prepareAllMetricsSamples()
    	runtime.ReadMetricsSlow(&mstats, unsafe.Pointer(&samples[0]), len(samples), cap(samples))
    
    	checkUint64 := func(t *testing.T, m string, got, want uint64) {
    		t.Helper()
    		if got != want {
    			t.Errorf("metric %q: got %d, want %d", m, got, want)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    	return (*profBuf)(p).read(mode)
    }
    
    func (p *ProfBuf) Close() {
    	(*profBuf)(p).close()
    }
    
    type CPUStats = cpuStats
    
    func ReadCPUStats() CPUStats {
    	return work.cpuStats
    }
    
    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()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
  4. src/runtime/proc.go

    	stwStopTrace                                    // "stop trace"
    	stwForTestCountPagesInUse                       // "CountPagesInUse (test)"
    	stwForTestReadMetricsSlow                       // "ReadMetricsSlow (test)"
    	stwForTestReadMemStatsSlow                      // "ReadMemStatsSlow (test)"
    	stwForTestPageCachePagesLeaked                  // "PageCachePagesLeaked (test)"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
Back to top