开发者

.net possible to determine how much memory a collection object is using during a debugging session?

I have a collection of List where the object collection is a strong typed custom object I created, I have around 300 objects in the collection开发者_开发知识库.

Is it possible for me to determine how much memory this particular list is using while stepping through code during a debugging session.


The best you can get is DotTrace

.net possible to determine how much memory a collection object is using during a debugging session?


(source: jetbrains.com)

If its for performance then

.net possible to determine how much memory a collection object is using during a debugging session?


(source: jetbrains.com)

Worth every penny


You could use a memory profiler, such as .NET Memory Profiler. MS also have a free CLR Profiler, but I'm not sure if it shows memory allocation as I've never used it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜