branchrust_reboot/main/serverprofiler_recordscope_pausecancel
4 Commits over 0 Days - ∞cph!
Update: ServerProfiler.Init now resets managed internal state
- also added handle cleanup to ScopeRecorder and SlowScopeRecorder dispose, in case double-dispose gets called
This reduces test boilerplate slightly (as scope recorders have a timeout)
Tests: ran unit tests - they pass. still chasing native storage corruption
Bugfix: when exporting a snapshot from recorder scopes skip fast-forward logic to 0 callstack depth
Tests: recorded coroutine, was able to see all 3 log calls (before yield, after 1st yield and before yield break). But something's corrupting memory for subsequent perfsnapshots
Merge: from serverprofiler_recordscope_pause
Need it for experiments with profiling coroutines
Bugfix: prevent taking perfsnapshots if a recorder scope is currently active and vice versa
- also fix recorder triggering NREs because it tries to run perfsnapshot code
Tests: ran profiler scope spanning multiple frames. Checked output, it's not making sense, investigating deeper