堆栈和堆查看器
.NET 是否有免费的堆栈和堆查看器,它显示在堆栈和堆上分配的类型。我需要这个来进行我将要进行的培训。
Is there a free Stack and Heap viewer for .NET which shows what types are allocated on the stack and the heap. I need this for a training I will be conducting.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我使用 WinDbg with SOS 来实现这一点。附加到进程并使用以下命令:
!dumpheap -stat
将列出托管堆上的所有对象。!clrstack -a
将列出托管调用堆栈,包括当前线程的参数和局部变量。请记住,发布版本可能会限制可用本地变量的数量。~Xs
切换到线程 X。SOS有大量其他有用的命令来检查托管应用程序。
I use WinDbg with SOS for that. Attach to the process and use the following commands:
!dumpheap -stat
will list all objects on the managed heap.!clrstack -a
will list the managed call stack including parameters and locals for the current thread. Keep in mind that release builds may limit the number of available locals.~Xs
switch to thread X.SOS has loads of other useful commands to inspect managed applications.
查看 CLR 探查器
http: //blogs.msdn.com/b/jmstall/archive/2005/12/17/clr-profiler-2-0-available.aspx
并且另一篇文章可以帮助
http://msdn.microsoft.com/en-us/杂志/ee309515.aspx
Checkout CLR profiler
http://blogs.msdn.com/b/jmstall/archive/2005/12/17/clr-profiler-2-0-available.aspx
And another article that could help
http://msdn.microsoft.com/en-us/magazine/ee309515.aspx