tags:

views:

41

answers:

3

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.

A: 

Hi,

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.

keyboardP
Thanks, do you know any free and still useful alternatives?
JL
Hi, I just edited the comment as you posted. I don't know of any other free alternative. If it's just for a quick project, you can use it for 14 days.
keyboardP
Why was this down-voted?
keyboardP
No idea... I upvoted all answers... I think someone randomly downvoted every answer....
JL
No worries. I just thought the tools weren't relevant or something :)
keyboardP
Completely relevant and thanks again!
JL
A: 

See following
http://msdn.microsoft.com/en-us/library/ee658248.aspx

Brij
A: 

The best you can get is DotTrace

alt text

If its for performance then

alt text

Worth every penny

Cherian
+1 and accepted answer... wonder who would downvote this answer...
JL