hey I want to check that how much memory is allocated for my C program in memory when i run because I want to reduce the size of my program if I get that how much memory used my program so then its help to me to reduce the size. so any can tell me how can I do this in C ?
相关问题
- Multiple sockets for clients to connect to
- What uses more memory in c++? An 2 ints or 2 funct
- What is the best way to do a search in a large fil
- glDrawElements only draws half a quad
- Index of single bit in long integer (in C) [duplic
On Windows:
Right click on the
TaskBar
(Windows 7/ Windows 8) &CTRL+ALT+DEL
on Windows XP, click StartTask Mananger
. A windows will popup, go toPerformance tab
and click onResource Moniter
button. A new windows will pop up. Find your process there in the list ofMemory section
.On Linux:
Get pid of the process and type
top -p PID
. It will display information about the process, including percent of system memory used.