Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 12 of 12 for setProcessCPUProfiler (0.19 sec)

  1. src/runtime/os_windows.go

    				// was in the process of shutting down.
    				profilem(mp, thread)
    			}
    			stdcall1(_ResumeThread, thread)
    			stdcall1(_CloseHandle, thread)
    		}
    	}
    }
    
    func setProcessCPUProfiler(hz int32) {
    	if profiletimer == 0 {
    		var timer uintptr
    		if haveHighResTimer {
    			timer = createHighResTimer()
    		} else {
    			timer = stdcall3(_CreateWaitableTimerA, 0, 0, 0)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 22:55:25 UTC 2024
    - 41.5K bytes
    - Viewed (0)
  2. src/runtime/proc.go

    	// it would deadlock.
    	setThreadCPUProfiler(0)
    
    	for !prof.signalLock.CompareAndSwap(0, 1) {
    		osyield()
    	}
    	if prof.hz.Load() != hz {
    		setProcessCPUProfiler(hz)
    		prof.hz.Store(hz)
    	}
    	prof.signalLock.Store(0)
    
    	lock(&sched.lock)
    	sched.profilehz = hz
    	unlock(&sched.lock)
    
    	if hz != 0 {
    		setThreadCPUProfiler(hz)
    	}
    
    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