undefinedfix
Sign in

How does Ubuntu check the execution time and memory usage of C program?

Googie edited in Tue, 24 Nov 2020

How does Ubuntu check the execution time and memory usage of a C program written by itself?

2 Replies
Amer
commented on Tue, 24 Nov 2020

If you run the program. / test, enter PS aux | grep test after running (or when running), the information returned means

Among them are CPU usage, memory usage, and runtime. In particular, if you need to view these information in real time during the running of the program, enter top | grep test, it will be displayed every second, and Ctrl + C will exit.

TiskSec365
commented on Tue, 24 Nov 2020

Time test, in front of a time, you can display the time

lock This question has been locked and the reply function has been disabled.