Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for headroom (0.15 sec)

  1. src/internal/poll/splice_linux_test.go

    	// Exploit the timeout of "go test" as a timer for the subsequent verification.
    	timeout := 5 * time.Minute
    	if deadline, ok := t.Deadline(); ok {
    		timeout = deadline.Sub(time.Now())
    		timeout -= timeout / 10 // Leave 10% headroom for cleanup.
    	}
    	expiredTime := time.NewTimer(timeout)
    	defer expiredTime.Stop()
    
    	// Trigger garbage collection repeatedly, waiting for all pipes in sync.Pool
    	// to either be deallocated and closed, or to time out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/runtime/tracetime.go

    // how long it takes to call through the scheduler.
    // We could be more aggressive and bump this up to 128 ns while still getting
    // useful data, but the extra bit doesn't save us that much and the headroom is
    // nice to have.
    //
    // Hitting this target resolution is easy in the nanotime case: just pick a
    // division of 64. In the cputicks case it's a bit more complex.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top