VerySleepy / verysleepy

Very Sleepy, a sampling CPU profiler for Windows
http://www.codersnotes.com/sleepy
GNU General Public License v2.0
1.07k stars 105 forks source link

Loading symbols from an incremental PDB #56

Closed Yogurt4 closed 3 years ago

Yogurt4 commented 6 years ago

Hi,

When you have incremental linking enabled (/INCREMENTAL) and maybe /DEBUG:FASTLINK, VerySleepy cannot load the symbols at all, so only function addresses are displayed. Could there be an improvement for this?

Sometimes it's just necessary to profile a debug build, and incremental linking saves a lot of compilation/linking time.

CyberShadow commented 6 years ago

Probably, you just need a newer version of dbghelp.dll ?

Try replacing dbghelpms.dll with the latest one you have available (probably the one that came with the toolchain you used to create the PDB in question).

Yogurt4 commented 6 years ago

Thank you, this really works. It only took a while to get the proper versions. My VS 2017 has 10 instances of dbghelp.dll scattered around in various subdirectories.

vegorovinno commented 5 years ago

Thank you, this really works. It only took a while to get the proper versions. My VS 2017 has 10 instances of dbghelp.dll scattered around in various subdirectories.

Can you tell which version works best?

I've tried placing various versions and Very Sleepy behavior ranges from 'hangs irrecoverably' to 'too slow to start profiling' (thread list update takes 4 seconds so clicks on Profile Selected are just ignored.

vegorovinno commented 5 years ago

Best version for me turned up in $:\Windows\System32\dbghelp.dll - no hangs and no missing symbols.

CyberShadow commented 3 years ago

Could you please see if this issue occurs with the latest release: https://github.com/VerySleepy/verysleepy/releases

I believe someone contributed a fix (version bump of DbgHelp) which may address this particular problem. If you encounter further problems, please leave a comment or open a new issue. Thanks!