← Back to topics
Topic

Program Memory

K
Kameleon
How can I see how much memory does my program use?

My kindest regards.
a
adminModerator
It's reported to you when your program is being graded.
K
Kameleon
Ok what about when I compile it on my computer?
a
adminModerator
well.. depending on the OS.

in windows you can use the task manager to get an estimate (current memory usage).

in linux you can use "top" to see the current memory usage.

for the maximal memory usage during the execution, you'll have to use some more advanced stuff.

I'll probably make a linux library that does that. I don't know how (or if it's even possible to do it in windows)