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.
nicedoneAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lokesh B RDeveloperCommented:
Hi,

You need to create a performance session in your visual studio and check the performance of the code.

https://msdn.microsoft.com/en-us/library/ms182372.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nicedoneAuthor Commented:
Hi, thanks for the comment, is there anyway that i can measure this myself without a profiling tool ?
Lokesh B RDeveloperCommented:
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.
Bob LearnedCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.