profiler.cpp File Reference
#include "profiler.h"
#include <argos3/core/utility/logging/argos_log.h>
#include <argos3/core/utility/configuration/argos_configuration.h>
Include dependency graph for profiler.cpp:

Go to the source code of this file.

Namespaces

 argos
 The namespace containing all the ARGoS related code.
 

Macros

#define DUMP_RUSAGE_FIELD_HUMAN_READABLE(MSG, FIELD)   c_os << MSG ": " << t_resources.ru_ ## FIELD << std::endl;
 
#define DUMP_RUSAGE_FIELD_TABLE_ROW(FIELD)   c_os << " " << t_resources.ru_ ## FIELD;
 
#define DIFF_RUSAGE_FIELD(FIELD)   tResult.ru_ ## FIELD = t_resource1.ru_ ## FIELD - t_resource2.ru_ ## FIELD;
 

Functions

void argos::DumpResourceUsageHumanReadable (std::ostream &c_os, const ::rusage &t_resources)
 
void argos::DumpResourceUsageAsTableRow (std::ostream &c_os, const ::rusage &t_resources)
 
::rusage argos::operator- (const ::rusage &t_resource1, const ::rusage &t_resource2)
 

Macro Definition Documentation

◆ DIFF_RUSAGE_FIELD

#define DIFF_RUSAGE_FIELD (   FIELD)    tResult.ru_ ## FIELD = t_resource1.ru_ ## FIELD - t_resource2.ru_ ## FIELD;

Definition at line 88 of file profiler.cpp.

◆ DUMP_RUSAGE_FIELD_HUMAN_READABLE

#define DUMP_RUSAGE_FIELD_HUMAN_READABLE (   MSG,
  FIELD 
)    c_os << MSG ": " << t_resources.ru_ ## FIELD << std::endl;

Definition at line 36 of file profiler.cpp.

◆ DUMP_RUSAGE_FIELD_TABLE_ROW

#define DUMP_RUSAGE_FIELD_TABLE_ROW (   FIELD)    c_os << " " << t_resources.ru_ ## FIELD;

Definition at line 62 of file profiler.cpp.