3 ms·
It's "correct" in the sense that if it works perfectly it gives you all the information and is strictly better than frame pointers in the amount of information
by saagarjha 4y ago
It's "correct" in the sense that if it works perfectly it gives you all the information and is strictly better than frame pointers in the amount of information it gives. In practice, the thing a profiler really wants is basically just a backtrace, and fast. DWARF isn't particularly great at producing these reliably or quickly, because compilers will mess up and the format is complicated.
- haberman 4y agoIsn't correct unwind information a precondition for handling C++ exceptions? It seems like a compiler that produces incorrect unwind information would display incorrect behavior when a C++ exception is being caught.
- saagarjha 4y agoMy assumption is, having not looked very closely at it, is that in cases where correct unwinding matters for program correctness compilers will make sure things work, and everything outside of that rots into not being reliable because it’s not tested.