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
(source: jetbrains.com)
If its for performance then
(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.
精彩评论