Geogram Version 1.9.6-rc
A programming library of geometric algorithms
|
#include <exploragram/hexdom/time_log.h>
Public Member Functions | |
void | add_step (const std::string &name) |
void | start_section (const std::string &secname, const std::string &name="begin section") |
void | end_section () |
void | add_value (std::string str, double val) |
void | add_string (std::string str, std::string val) |
void | show () |
void | drop_file (std::string filename, bool append=false, unsigned int timing_depth=1000) |
void | set_suffix (const std::string &suffix) |
LogTime reports a hierarchical execution pipeline: A logger outputs the steps during execution It summarizes execution time in each step It outputs important values (stats) at the end of the execution
Definition at line 57 of file time_log.h.
|
inline |
Definition at line 63 of file time_log.h.
|
inline |
Definition at line 64 of file time_log.h.
void LogTime::add_step | ( | const std::string & | name | ) |
put it before starting a new task of the pipeline
void LogTime::add_string | ( | std::string | str, |
std::string | val | ||
) |
values are used to get feedback (mostly quality stats)
void LogTime::add_value | ( | std::string | str, |
double | val | ||
) |
values are used to get feedback (mostly quality stats)
void LogTime::drop_file | ( | std::string | filename, |
bool | append = false , |
||
unsigned int | timing_depth = 1000 |
||
) |
drop_file is to have the summary in a file.
|
inline |
Definition at line 98 of file time_log.h.
void LogTime::show | ( | ) |
show is to have the summary in the console
void LogTime::start_section | ( | const std::string & | secname, |
const std::string & | name = "begin section" |
||
) |
start/end section to define tasks that will be split into smaller tasks