Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for saveblockevent (0.32 sec)

  1. src/runtime/mprof.go

    }
    
    func blockevent(cycles int64, skip int) {
    	if cycles <= 0 {
    		cycles = 1
    	}
    
    	rate := int64(atomic.Load64(&blockprofilerate))
    	if blocksampled(cycles, rate) {
    		saveblockevent(cycles, rate, skip+1, blockProfile)
    	}
    }
    
    // blocksampled returns true for all events where cycles >= rate. Shorter
    // events have a cycles/rate random chance of returning true.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:57:37 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top