如何分析内存使用情况在我的项目 [英] How do I profile memory usage in my project

查看:89
本文介绍了如何分析内存使用情况在我的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么好看的,免费工具来分析在C#中的内存使用情况?

Are there any good, free tools to profile memory usage in C# ?

详细信息:结果
我有一个使用相当大的集合可视化项目。我想检查该项目的哪些部分 - 在数据处理方面,还是在可视化方 - 最常用的内存,所以我可以优化它结果
我知道,当谈到。集合的情况下计算的大小是相当简单的,我可以做我自己。但也有对此我无法估计内存使用情况这么容易的某些元素。结果
的内存使用量是相当大的,例如加工的面积为35 MB的文件我的程序使用一点点超过250 MB 。内存

Details:
I have a visualization project that uses quite large collections. I would like to check which parts of this project - on the data-processing side, or on the visualization side - use most of the memory, so I could optimize it.
I know that when it comes to computing size of the collection the case is quite simple and I can do it on my own. But there are also certain elements for which I cannot estimate the memory usage so easily.
The memory usage is quite big, for example processing a file of size 35 MB my program uses a little bit more than 250 MB of RAM.

推荐答案

我用展鹏的的蚂蚁探查。这也是值得一读布拉德·艾布拉姆斯博客在那里他的谈到了分析内存

I've had success using RedGate's ANTS profiler. It is also worth reading Brad Abrams blog where he has talked about profiling memory

这篇关于如何分析内存使用情况在我的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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