How to measure the memory usage of a code? | Sololearn: Learn to code for FREE!

0

How to measure the memory usage of a code?

5/19/2021 4:49:13 PM

ACE

1 Answer

New Answer

+3

Operating systems usually came with some form of process information utility. Windows has Task Manager and Linux *IIRC* has table of process. These utilities has extended information about resource usage of each running process. You can utilise them to watch for a certain process' resource usage. Implementing such thing in our own program is not easy task, it's part of system information. However some high level languages may support it through a framework or library.