I**********s 发帖数: 441 | 1 Is there any way to get the peak memory usage of a process in Fedora core?
I'm measuring memory usage of my program.
Now directly reading from the system monitor,
which may not be accurate,
and there may be no reading if the program finishes fast. |
b******n 发帖数: 592 | 2 why not keep track of it inside your program.
【在 I**********s 的大作中提到】 : Is there any way to get the peak memory usage of a process in Fedora core? : I'm measuring memory usage of my program. : Now directly reading from the system monitor, : which may not be accurate, : and there may be no reading if the program finishes fast.
|
f**y 发帖数: 138 | 3 Read VmPeak from /proc/[pid]/status before process exists. |
f**y 发帖数: 138 | 4 mallinfo() api call also gives lots of details. |