@cincura_net running code on another machine (with 16c/32t vs 8c/16t) and the RtlUserThreadStart Self CPU drops to ~1% (from 70%). Could this just be a profiler issue?
@nietras Could be. The screenshot looks like VS profiler, what kind of measurement are you using - sampling or instrumentation? Maybe you could try to collect trace from PerfView…
@KirillOsenkov@cincura_net turns out by refactoring some code out from delegate (lambda) to static methods then vs profiler reports it correctly. Guess would be code in delegate somehow causes stack frame to be incorrectly reported as top frame of thread start. Or something 😅
Add comment