JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.92k stars 5.49k forks source link

investigate if Profiling works on Windows since Windows 11 (July 2021) #51942

Open vtjnash opened 1 year ago

vtjnash commented 1 year ago

Our profiler relies upon timeBeginPeriod, which was replaced by CREATE_WAITABLE_TIMER_HIGH_RESOLUTION in July 2021 for processes that might call CreateWindow: https://github.com/MicrosoftDocs/sdk-api/commit/1a7909a936dbc06faa7572ed9492968bed817649

This might need some investigation or replacement for Profiling to continue to work in new versions of Windows https://randomascii.wordpress.com/2020/10/04/windows-timer-resolution-the-great-rule-change/ https://github.com/randomascii/blogstuff/blob/main/timer_interval/waitable_timer.cpp

inkydragon commented 1 year ago

xref:

It looks like they are all using CreateWaitableTimerExW and not calling timeBeginPeriod.