Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for measureText (0.14 sec)

  1. src/runtime/mgcpacer.go

    	// Update our cons/mark estimate. This is the maximum of the value we just computed and the last
    	// 4 cons/mark values we measured. The reason we take the maximum here is to bias a noisy
    	// cons/mark measurement toward fewer assists at the expense of additional GC cycles (starting
    	// earlier).
    	oldConsMark := c.consMark
    	c.consMark = currentConsMark
    	for i := range c.lastConsMark {
    		if c.lastConsMark[i] > c.consMark {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  2. src/runtime/pprof/pprof_test.go

    						ok = false
    					}
    				}
    
    				// cpuHog1 called below is the primary source of CPU
    				// load, but there may be some background work by the
    				// runtime. Since the OS rusage measurement will
    				// include all work done by the process, also compare
    				// against all samples in our profile.
    				var value time.Duration
    				for _, sample := range p.Sample {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
  3. src/runtime/mheap.go

    	// It's OK to simply skip scavenging in these cases. Something else will notice
    	// and pick up the tab.
    	var now int64
    	if pp != nil && bytesToScavenge > 0 {
    		// Measure how long we spent scavenging and add that measurement to the assist
    		// time so we can track it for the GC CPU limiter.
    		//
    		// Limiter event tracking might be disabled if we end up here
    		// while on a mark worker.
    		start := nanotime()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
Back to top