[willchen@dn121201 cProfile]$ /usr/bin/time -v python test.py
Command being timed: "python test.py"
User time(seconds): 1.17
System time(seconds): 0.14
Percent of CPU this job got: 56%
Elapsed (wall clock)time(h:mm:ss or m:ss): 0:02.33
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 215252
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 59697
Voluntary context switches: 5
Involuntary context switches: 21
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
By the way, if you use `time`(shell keyword) instead of `/usr/bin/time`, only shows the time result
ProfileSolutionUse time tool[willchen@dn121201 cProfile]$ /usr/bin/time -v python test.py Command being timed: "python test.py" User time (seconds): 1.17 System time (seconds): 0.14 Percent of CPU this job got: 56% Elapsed (wall clock) time (h: