Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ReadMemStatsSlow (0.14 sec)

  1. src/internal/trace/oldtrace.go

    	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 {
    		// This should be impossible but let's be safe.
    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/gc_test.go

    	}
    }
    
    func init() {
    	// Enable ReadMemStats' double-check mode.
    	*runtime.DoubleCheckReadMemStats = true
    }
    
    func TestReadMemStats(t *testing.T) {
    	base, slow := runtime.ReadMemStatsSlow()
    	if base != slow {
    		logDiff(t, "MemStats", reflect.ValueOf(base), reflect.ValueOf(slow))
    		t.Fatal("memstats mismatch")
    	}
    }
    
    func logDiff(t *testing.T, prefix string, got, want reflect.Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/runtime/export_test.go

    		getg().racectx = 0
    	})
    	metricsUnlock()
    
    	startTheWorld(stw)
    }
    
    var DoubleCheckReadMemStats = &doubleCheckReadMemStats
    
    // ReadMemStatsSlow returns both the runtime-computed MemStats and
    // MemStats accumulated by scanning the heap.
    func ReadMemStatsSlow() (base, slow MemStats) {
    	stw := stopTheWorld(stwForTestReadMemStatsSlow)
    
    	// Run on the system stack to avoid stack growth allocation.
    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

    	stwForTestCountPagesInUse                       // "CountPagesInUse (test)"
    	stwForTestReadMetricsSlow                       // "ReadMetricsSlow (test)"
    	stwForTestReadMemStatsSlow                      // "ReadMemStatsSlow (test)"
    	stwForTestPageCachePagesLeaked                  // "PageCachePagesLeaked (test)"
    	stwForTestResetDebugLog                         // "ResetDebugLog (test)"
    )
    
    func (r stwReason) String() string {
    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