10 #include <sys/resource.h>
24 CProfiler(
const std::string& str_file_name,
30 void Flush(
bool b_human_readable);
35 void StartWallClock();
38 void StartCPUProfiler();
39 void StopCPUProfiler();
41 void FlushHumanReadable();
46 std::ofstream m_cOutFile;
47 ::timeval m_tWallClockStart;
48 ::timeval m_tWallClockEnd;
49 ::rusage m_tResourceUsageStart;
50 ::rusage m_tResourceUsageEnd;
51 std::vector< ::rusage > m_vecThreadResourceUsage;
52 pthread_mutex_t m_tThreadResourceUsageMutex;
The namespace containing all the ARGoS related code.
void CollectThreadResourceUsage()
void Flush(bool b_human_readable)
CProfiler(const std::string &str_file_name, bool b_trunc=true)