I’m currently working on some OJ system, and the system will give out the TIME and MEMORY usage after my program is run. I know that there is ./time that could check out time usage, how about memory? Or is there any command that could check both?
I’m currently working on some OJ system, and the system will give out the
Share
Use
valgrind.When your process exit,
valgrindwill output a summary of bytes allocated/freed during the execution time and how much space was still allocated just before exitOutput example: