finding the performance and memory consumption

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cutiepie
    New Member
    • Mar 2007
    • 6

    finding the performance and memory consumption

    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 "ManagementObje ctSearcher" 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.
  • TRScheel
    Recognized Expert Contributor
    • Apr 2007
    • 638

    #2
    Originally posted by cutiepie
    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 "ManagementObje ctSearcher" 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.GetTotalMemo ry 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.Manageme nt 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

    Comment

    Working...