开发者

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

开发者 https://www.devze.com 2022-12-16 14:11 出处:网络
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开发者_开发知识库.

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

精彩评论

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

关注公众号