You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, with .NET8+ and PGO enabled code might be changed in runtime. So when we check Stack Trace at Environment.StackTrace or Exception.StackTrace we have stack changed by PGO and other optimizations. Can we somehow get access to origin Stack Trace (without optimizations)?
The text was updated successfully, but these errors were encountered:
I'm not 100% sure I understand your question, so please correct me if this doesn't make sense.
Enabling PGO means it should just spend more time optimizing certain code paths and predicting conditions more accurately based on your data. That might mean rearranging the order that it tries to execute things—not sure about that—but I imagine it ensures that any variable accesses have the right data at the time of access regardless of optimizations, or else it isn't an optimization but a bug.
What do you need the stack traces for? Most uses of stack traces I can think of are in testing or debugging, and for that I'd just disable optimizations in the first place.
Hi, with .NET8+ and PGO enabled code might be changed in runtime. So when we check Stack Trace at
Environment.StackTrace
orException.StackTrace
we have stack changed by PGO and other optimizations. Can we somehow get access to origin Stack Trace (without optimizations)?The text was updated successfully, but these errors were encountered: