MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
struct | Clock |
struct | ClockTable |
Macros | |
#define | WALLTIME_IGNORE "." |
#define | LINENO(a, b) a ":" # b |
#define | walltime_measure(name) walltime_measure_full(name, __FILE__ , __LINE__) |
#define | walltime_add(name, dt) walltime_add_full(name, dt, __FILE__, __LINE__) |
#define | walltime_step_min(id) walltime_get(id, CLOCK_STEP_MIN) |
#define | walltime_step_max(id) walltime_get(id, CLOCK_STEP_MAX) |
#define | walltime_step_mean(id) walltime_get(id, CLOCK_STEP_MEAN) |
#define | walltime_accu_min(id) walltime_get(id, CLOCK_ACCU_MIN) |
#define | walltime_accu_max(id) walltime_get(id, CLOCK_ACCU_MAX) |
#define | walltime_accu_mean(id) walltime_get(id, CLOCK_ACCU_MEAN) |
Enumerations | |
enum | clocktype { CLOCK_STEP_MEAN , CLOCK_STEP_MAX , CLOCK_STEP_MIN , CLOCK_ACCU_MEAN , CLOCK_ACCU_MAX , CLOCK_ACCU_MIN } |
Functions | |
int | walltime_clock (const char *name) |
void | walltime_reset (void) |
double | walltime_measure_internal (const char *name) |
double | walltime_add_internal (const char *name, const double dt) |
double | walltime_measure_full (const char *name, const char *file, const int line) |
double | walltime_add_full (const char *name, const double dt, const char *file, const int line) |
char | walltime_get_symbol (const char *name) |
double | walltime_get_time (const char *name) |
double | walltime_get (const char *name, const enum clocktype type) |
void | walltime_summary (const int root, MPI_Comm comm) |
void | walltime_report (FILE *fd, const int root, MPI_Comm comm) |
void | walltime_init (struct ClockTable *table) |
#define LINENO | ( | a, | |
b | |||
) | a ":" # b |
Definition at line 7 of file walltime.h.
#define walltime_accu_max | ( | id | ) | walltime_get(id, CLOCK_ACCU_MAX) |
Definition at line 33 of file walltime.h.
#define walltime_accu_mean | ( | id | ) | walltime_get(id, CLOCK_ACCU_MEAN) |
Definition at line 34 of file walltime.h.
#define walltime_accu_min | ( | id | ) | walltime_get(id, CLOCK_ACCU_MIN) |
Definition at line 32 of file walltime.h.
#define walltime_add | ( | name, | |
dt | |||
) | walltime_add_full(name, dt, __FILE__, __LINE__) |
Definition at line 9 of file walltime.h.
#define WALLTIME_IGNORE "." |
Definition at line 6 of file walltime.h.
#define walltime_measure | ( | name | ) | walltime_measure_full(name, __FILE__ , __LINE__) |
Definition at line 8 of file walltime.h.
#define walltime_step_max | ( | id | ) | walltime_get(id, CLOCK_STEP_MAX) |
Definition at line 30 of file walltime.h.
#define walltime_step_mean | ( | id | ) | walltime_get(id, CLOCK_STEP_MEAN) |
Definition at line 31 of file walltime.h.
#define walltime_step_min | ( | id | ) | walltime_get(id, CLOCK_STEP_MIN) |
Definition at line 29 of file walltime.h.
enum clocktype |
Enumerator | |
---|---|
CLOCK_STEP_MEAN | |
CLOCK_STEP_MAX | |
CLOCK_STEP_MIN | |
CLOCK_ACCU_MEAN | |
CLOCK_ACCU_MAX | |
CLOCK_ACCU_MIN |
Definition at line 15 of file walltime.h.
double walltime_add_full | ( | const char * | name, |
const double | dt, | ||
const char * | file, | ||
const int | line | ||
) |
Definition at line 203 of file walltime.c.
References name, and walltime_add_internal().
double walltime_add_internal | ( | const char * | name, |
const double | dt | ||
) |
Definition at line 180 of file walltime.c.
References ClockTable::C, CT, name, Clock::time, and walltime_clock().
Referenced by walltime_add_full().
int walltime_clock | ( | const char * | name | ) |
Definition at line 112 of file walltime.c.
References ClockTable::C, clockcmp(), CT, ClockTable::N, name, Clock::name, and walltime_clock_insert().
Referenced by walltime_add_internal(), walltime_clock_insert(), walltime_get(), walltime_get_symbol(), walltime_get_time(), and walltime_measure_internal().
double walltime_get | ( | const char * | name, |
const enum clocktype | type | ||
) |
Definition at line 130 of file walltime.c.
References ClockTable::AC, ClockTable::C, CLOCK_ACCU_MAX, CLOCK_ACCU_MEAN, CLOCK_ACCU_MIN, CLOCK_STEP_MAX, CLOCK_STEP_MEAN, CLOCK_STEP_MIN, CT, Clock::max, Clock::mean, Clock::min, name, and walltime_clock().
char walltime_get_symbol | ( | const char * | name | ) |
Definition at line 125 of file walltime.c.
References ClockTable::C, CT, name, Clock::symbol, and walltime_clock().
double walltime_get_time | ( | const char * | name | ) |
Definition at line 149 of file walltime.c.
References ClockTable::C, CT, name, Clock::time, and walltime_clock().
void walltime_init | ( | struct ClockTable * | table | ) |
Definition at line 19 of file walltime.c.
References CT, ClockTable::ElapsedTime, LastReportTime, ClockTable::N, ClockTable::Nmax, seconds(), walltime_clock_insert(), and walltime_reset().
Referenced by begrun(), main(), setup_density(), setup_particles(), setup_tree(), and test_fof().
double walltime_measure_full | ( | const char * | name, |
const char * | file, | ||
const int | line | ||
) |
Definition at line 195 of file walltime.c.
References name, and walltime_measure_internal().
double walltime_measure_internal | ( | const char * | name | ) |
Definition at line 185 of file walltime.c.
References ClockTable::C, CT, name, seconds(), Clock::time, walltime_clock(), and WallTimeClock.
Referenced by walltime_measure_full().
void walltime_report | ( | FILE * | fd, |
const int | root, | ||
MPI_Comm | comm | ||
) |
Definition at line 220 of file walltime.c.
References ClockTable::AC, ClockTable::C, CT, ClockTable::ElapsedTime, Clock::max, Clock::mean, Clock::min, ClockTable::N, name, Clock::name, ClockTable::Nchildren, and ClockTable::StepTime.
Referenced by compute_global_quantities_of_system(), and main().
void walltime_reset | ( | void | ) |
Definition at line 176 of file walltime.c.
References seconds(), and WallTimeClock.
Referenced by walltime_init().
void walltime_summary | ( | const int | root, |
MPI_Comm | comm | ||
) |
Definition at line 55 of file walltime.c.
References ClockTable::AC, ClockTable::C, CT, ClockTable::ElapsedTime, LastReportTime, ClockTable::N, seconds(), ClockTable::StepTime, Clock::time, walltime_summary_clocks(), and walltime_update_parents().
Referenced by compute_global_quantities_of_system(), and main().