Link to home
Start Free TrialLog in
Avatar of nicedone
nicedone

asked on

profiling via c#,.net ,how to measure cpu and memory utilizations?

Hi, i am asked to do profiling , basicly cpu,memory usages and metrics on some code , i have no previous experience or know how on how to do profiling , any ideas or code or tool anything is appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Lokesh B R
Lokesh B R
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nicedone
nicedone

ASKER

Hi, thanks for the comment, is there anyway that i can measure this myself without a profiling tool ?
Hi,

I don't think so and you can do the performance tests in your visual studio without any external tool.

You just run the profiler and the visual studio project and go to the functionality where you want to test the performance and stop and check the values.
There is another way, but it would depend on the Visual Studio version.  I believe that only the Ultimate edition has load testing, which can report that information:

Load Testing in 10 Steps
http://www.codeproject.com/Articles/94007/Load-Testing-in-Steps

Otherwise, you would need to learn how to use the Performance Monitor, which can be a daunting task for the uninitiated.

Performance Counters for ASP.NET
https://msdn.microsoft.com/en-us/library/fxk122b4(v=vs.140).aspx