堆栈堆可视化器C# [英] Stack heap visualizer c#

查看:85
本文介绍了堆栈堆可视化器C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,早上好,

我正在使用slimdx构建直接3D渲染循环.
它必须具有尽可能高的内存效率.
我已经写了一些un(box),dispose,gc collect,application.doevents -fxcop规则,这些规则在找到时会给我一个错误.
我想知道是否有可能提供一个调试可视化工具来显示堆栈中的内容和堆中的内容.

有人吗?

Hello and good morning,

I am building a direct 3D renderloop using slimdx.
It has to be as much memory efficient as possible.
I already wrote some un(box), dispose, gc collect, application.doevents -fxcop rules that will give me a error when found.

I was wondering if it is possible to have a debug visualizer that shows whats in the stack and whats in the heap.

Anybody ?

推荐答案

可以使用System.Diagnostics.StackTraceSystem.Diagnostics.StackFrame获得堆栈上的一些信息,请参见相应MSDN帮助页面上的一些示例.堆的问题更加困难.请参阅以下讨论: http://social.msdn .microsoft.com/Forums/zh-CN/csharpgeneral/thread/8e6db1e6-e429-4b4f-9ac6-5e848604188b/ [
Some information on the stack you can get using System.Diagnostics.StackTrace and System.Diagnostics.StackFrame, see some samples on the respective MSDN help pages. The problem with the heap is more difficult. See this discussion: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/8e6db1e6-e429-4b4f-9ac6-5e848604188b/[^].

—SA


这篇关于堆栈堆可视化器C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆