VerySleepy / verysleepy

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

Allow disabling symbol resolution for some modules #109

Open UnrealKaraulov opened 1 year ago

UnrealKaraulov commented 1 year ago

Need show "DLL+Offset", but I see only "FIRSTFUNCTIONNAME".

For example I have one dll "External.DLL" with one exported function "FIRSTFUNCTIONNAME"

For example I need see in stack something like:

External.DLL+0x502C 
External.DLL+0x3062
External.DLL+0x2004
External.DLL+0x600C
External.DLL+0x3062
....

But I see only

FIRSTFUNCTIONNAME
FIRSTFUNCTIONNAME
FIRSTFUNCTIONNAME
FIRSTFUNCTIONNAME
FIRSTFUNCTIONNAME
FIRSTFUNCTIONNAME
.....
CyberShadow commented 1 year ago

Need show "DLL+Offset", but I see only "FIRSTFUNCTIONNAME".

Yeah, I think it's because dbghelp will use exports as symbols if there are no symbols.

I think we need a right-click menu option to disable trying to resolve symbols in the clicked module, and show offsets instead.

Fatal error: No offsets in stack

I'm not sure what this has to do with the above. Is this a different problem?

UnrealKaraulov commented 1 year ago

I'm not sure what this has to do with the above. Is this a different problem

Okay I do rename this issue

UnrealKaraulov commented 1 year ago

I think we need a right-click menu option to disable trying to resolve symbols in the clicked module, and show offsets instead.

Yes! (Only for "whitelisted" dll's for example)

You can fix it?

CyberShadow commented 1 year ago

If you would like to add this feature, I'll try to review the PR and get it in.

UnrealKaraulov commented 1 year ago

If you would like to add this feature, I'll try to review the PR and get it in.

I can't build this tool from build.cmd :(

CyberShadow commented 1 year ago

Right, let's first figure out that problem in #110.

UnrealKaraulov commented 1 year ago

I'll try to review the PR and get it in.

https://github.com/VerySleepy/verysleepy/pull/112