Hi all,
I am running C++ program on Linux, This program creates temporary files on the Hard Disk to compute its result. I need to know how much space does this program use from the Disk while it is running. I could not able to change the source code to keep the files so I can subtract the size of the Program folder before and after producing the results. is there any profiling tool that I can use to help me in this situation.
Thanks in advance.
If you don't have access to your programs source code then you may write a small program, which
1. forks off a process running your program, and
2. monitors frequently all resource usage of its children using getrusage(2).
Another way: Use top(1) to frequently monitor your process.