Log rusage data in C++ files