-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
Labels
area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions
Milestone
Description
Today, COR_PRF_DISABLE_OPTIMIZATIONS is defined as an immutable flag, which means you can switch it on or off after profiler initialization.
It seems quite arbitrary as the Debugger API allows to set very similar debug bits on modules dynamically and the way the JIT knows if optimizations are disabled are in this macro: https://github.com/dotnet/runtime/blob/main/src/coreclr/vm/vars.hpp#L559 which queries pretty much in the same way the debugger and profiler flags.
For Unity Core CLR editor, we have a need to be able to switch that flag on or off dynamically to improve developer experience when debugging.
Metadata
Metadata
Assignees
Labels
area-Diagnostics-coreclrenhancementProduct code improvement that does NOT require public API changes/additionsProduct code improvement that does NOT require public API changes/additions