Obtain a maximum amount of memory used by a C program
source link: https://www.codesd.com/item/obtain-a-maximum-amount-of-memory-used-by-a-c-program.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Obtain a maximum amount of memory used by a C program
I recently started fiddling with programming in C. What I need to do is find the maximum amount of memory used by a program throughout the lifetime of the process. How can I do this easily on Windows? Basically a tool in the form of:
> memoryused myprogram.exe
> peak amount of memory used: 36 bytes
I don't really need to track memory usage at any given time during the execution of the process.
for this you need use GetProcessMemoryInfo
Related Articles
How to determine the amount of memory used by unmanaged code
Why does the amount of memory used increase even after the memory has been output?
Amount of memory used by each thread
How to reduce the amount of memory used by the Sql connection pool in a C # program
General rule of the amount of memory used to recycle a work process?
What is the maximum amount of memory that a Flash movie can use in a browser?
Maximum amount of memory per java process in Windows?
How to clean memory & ldquo; & Rdquo; the applications determine the amount of memory used on iOS?
How to limit the amount of memory used to store integers?
Does Using Assign reduce the amount of memory used?
Cocoa - How to programmatically retrieve the amount of memory used by your application?
Discover the amount of memory used by the script
Why is the amount of memory used increasing?
How can I detect the amount of memory used for all controls on a form?
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK