For a previous employer, while performing dump analysis, I have regularly used heap_stat.py, based on PYKD library for Windbg.
I believe heap_stat.py script only works for C/C++ development. Is there an equivalent for C# applications?
Thanks in advance
I've tried to start up !Dumpheap -stat
, but loading the SOS extension seems to be a challenge:
Windbg 32-bit:
0:000> .loadby sos clr
0:000> !dumpheap -stat
SOS does not support the current target architecture.
Windbg 64-bit:
0:000> .loadby sos clr
The call to
LoadLibrary(C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll)
failed, Win32 error 0n193
"%1 is not a valid Win32 application."
Please check your debugger configuration and/or network access.
0:000> .load sos
0:000> !Dumpheap -stat
No export Dumpheap found
Windbg preview:
0:000> .loadby sos clr
The call to
LoadLibrary(C:\Windows\Microsoft.NET\Framework\v4.0.30319\sos.dll)
failed, Win32 error 0n193
"%1 is not a valid Win32 application."
Please check your debugger configuration and/or network access.
0:000> .load sos
0:000> !Dumpheap -stat
No export Dumpheap found
How can I load the SOS
extension and launch that !Dumpheap -stat
command?