Hi all,
I have written a C# code in visual studio 2005 and i want to find out how to find the performance of my code and how to find out the memory consumption??
i read somewhere that i can use "ManagementObjectSearcher" but i cant figure out how and where should i write it????
can anyone please guide me how to find this????
any help will be greatly appreciated..
waiting for your replies,
regards.
TaskManager will show you memory consumption including the libraries you are using and the extras.
GC.GetTotalMemory will get you all the memory you are using currently. To get more specifics, you can add the bytes used by your program manually to find the size of an object.
System.Management isnt what you want from what I know of it. I am pretty sure thats for managing your system, not your program.
If you use unit testing with NUnit, it will show you how long it takes to process a test which will give you the benchmark of your performance. I know there are other third party apps to manage memory too.
And... I think I hit all your points