473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 "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.
Jun 18 '07 #1
1 811
TRScheel
638 Expert 512MB
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
Jun 18 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: The Crow | last post by:
how does it affect performance and memory consumption? i think there will be no difference memory consumption per instance.
19
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0...
20
by: John Mark Howell | last post by:
I had a customer call about some C# code they had put together that was handling some large arrays. The performance was rather poor. The C# code runs in about 22 seconds and the equivalent...
4
by: psbasha | last post by:
Hi, Since in other languages we have pointer concept and we allocate memory and deallocate memory for various variables .So there will not be much memory consumption.But in case of Python we dont...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.