#include <logs.h>
Inherits setcomm.
|
| struct | timer_d |
| | struct containing the information of a CPU timer More...
|
| |
Definition at line 27 of file logs.h.
◆ timers
| Enumerator |
|---|
| CPU_NONE | used for counters without a parent
|
| CPU_ROOT | root node of the tree
|
Definition at line 90 of file logs.h.
◆ logs()
◆ block_checksum()
| void block_checksum |
( |
void * |
base, |
|
|
size_t |
bytes, |
|
|
int |
res[4] |
|
) |
| |
◆ calc_memory_checksum()
| void calc_memory_checksum |
( |
const char * |
msg, |
|
|
void * |
base, |
|
|
size_t |
bytes |
|
) |
| |
◆ compute_statistics()
| void compute_statistics |
( |
void |
| ) |
|
Computes new global statistics if needed (done by energy_statistics())
Definition at line 501 of file logs.cc.
◆ compute_total_momentum()
| void compute_total_momentum |
( |
void |
| ) |
|
◆ flush_everything()
| int flush_everything |
( |
void |
| ) |
|
◆ init_cpu_log()
◆ log_debug_md5()
| void log_debug_md5 |
( |
const char * |
msg | ) |
|
◆ measure_time()
| double measure_time |
( |
void |
| ) |
|
◆ open_logfiles()
| void open_logfiles |
( |
void |
| ) |
|
Open files for logging.
This function opens various log-files that report on the status and performance of the simulation. Upon restart, the code will append to these files.
Definition at line 35 of file logs.cc.
◆ output_log_messages()
| void output_log_messages |
( |
void |
| ) |
|
Write the FdInfo and FdTimeBin files.
At each time step this function writes on to two log-files. In FdInfo, it just lists the timesteps that have been done, while in FdTimeBin it outputs information about the active and occupied time-bins.
Definition at line 175 of file logs.cc.
◆ print_particle_info()
| void print_particle_info |
( |
int |
i | ) |
|
◆ print_particle_info_from_ID()
| void print_particle_info_from_ID |
( |
MyIDType |
ID | ) |
|
◆ second()
◆ timediff()
| double timediff |
( |
double |
t0, |
|
|
double |
t1 |
|
) |
| |
◆ timer_start()
| void timer_start |
( |
enum timers |
counter | ) |
|
|
inline |
◆ timer_stop()
| void timer_stop |
( |
enum timers |
counter | ) |
|
|
inline |
◆ write_cpu_log()
| void write_cpu_log |
( |
void |
| ) |
|
Write the FdBalance and FdCPU files.
At each time step this function writes on to two log-files. In FdBalance, it outputs in a graphical way the amount of time spent in the various parts of the code, while in FdCPU it writes information about the cpu-time consumption of the various modules.
Definition at line 330 of file logs.cc.
◆ CPU_Step
| double CPU_Step[CPU_LAST] |
◆ CPU_Step_Stored
| double CPU_Step_Stored[CPU_LAST] |
◆ CPU_Sum
sums wallclock time/CPU consumption in whole run
Definition at line 117 of file logs.h.
◆ CPUThisRun
Sums CPU time of current process
Definition at line 43 of file logs.h.
◆ FdBalance
file handle for balance.txt log-file.
Definition at line 50 of file logs.h.
◆ FdCPU
file handle for cpu.txt log-file.
Definition at line 53 of file logs.h.
◆ FdCPUCSV
file handle for cpu.csv log-file. Used if the cpu log is printed in csv format as well.
Definition at line 55 of file logs.h.
◆ FdDensity
file handle for timings.txt log-file.
Definition at line 48 of file logs.h.
◆ FdDomain
file handle for domain.txt log-file.
Definition at line 52 of file logs.h.
◆ FdEnergy
file handle for energy.txt log-file.
Definition at line 46 of file logs.h.
◆ FdHydro
file handle for timings.txt log-file.
Definition at line 49 of file logs.h.
◆ FdInfo
file handle for info.txt log-file.
Definition at line 45 of file logs.h.
◆ FdTimebin
file handle for timebins.txt log-file.
Definition at line 51 of file logs.h.
◆ FdTimings
file handle for timings.txt log-file.
Definition at line 47 of file logs.h.
◆ Sp
◆ Timer_data
◆ TimerStack
◆ TimerStackPos
The documentation for this class was generated from the following files: