Click here to Skip to main content
15,890,741 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
How to measure the memory usage of the code block.

What I have tried:

There are many paid profiler available but i want to do it manually. put suggest any reference example
Posted
Updated 2-Mar-17 10:14am
Comments
Richard MacCutchan 2-Mar-17 8:36am    
If you want to do it manually then you must calculate all the usage by hand.

1 solution

You could use a memory PerformanceCounter, here is an article on CodeProject about it: A Simple Performance Counter Application[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900