How to find total memory usage of a program?
Hello, I wrote a program that multiplies 2 matrices using multi-threads and another one using multiple processes and shared memory. Both in C.
I need to find the total memory usage of these programs. I know of the top command, but when my matrices are relatively small they don't even show up on top because they complete so fast, how can I find the memory usage for these instances?
Also, how can I find the total turnaround time of my programs?
Any help would be appreciated, thanks in advance.