PandA-2024.02
|
Include a set of utilities used to manage CPU time measures. More...
#include "config_HAVE_OPENMP.hpp"
#include <sys/times.h>
#include "dbgPrintHelper.hpp"
#include <unistd.h>
Go to the source code of this file.
Macros | |
#define | TIMES_TICKS_PER_SEC 60 |
#define | START_TIME(time_var) time_var = p_cpu_time() |
Macro used to store the start time into time_var. More... | |
#define | STOP_TIME(time_var) time_var = p_cpu_time() - (time_var) |
Macro used to store the elapsed time into time_var. More... | |
#define | START_WTIME(time_var) time_var = p_cpu_wtime() |
Macro used to store the start time into time_var. More... | |
#define | STOP_WTIME(time_var) time_var = p_cpu_wtime() - (time_var) |
Macro used to store the elapsed time into time_var. More... | |
Functions | |
long int | p_cpu_time () |
return a long which represents the elapsed processor time in milliseconds since some constant reference More... | |
std::string | print_cpu_time (long int t) |
massage a long which represents a time interval in milliseconds, into a string suitable for output More... | |
void | dump_exec_time (const std::string &thing, long et) |
long int | p_cpu_wtime () |
return a long which represents the elapsed wall processor time in milliseconds since some constant reference More... | |
Include a set of utilities used to manage CPU time measures.
Definition in file cpu_time.hpp.
#define START_TIME | ( | time_var | ) | time_var = p_cpu_time() |
Macro used to store the start time into time_var.
Definition at line 133 of file cpu_time.hpp.
Referenced by CompilerWrapper::CompileFile(), vcd_utility::Exec(), DesignFlowManager::Exec(), CompilerWrapper::FillTreeManager(), BB_based_stg::InternalExec(), easy_module_binding::InternalExec(), values_scheme::InternalExec(), mem_dominator_allocation::InternalExec(), mux_connection_binding::InternalExec(), allocation::InternalExec(), parametric_list_based::InternalExec(), cdfc_module_binding::InternalExec(), main(), vertex_coloring_register::RegisterBinding(), unique_binding_register::RegisterBinding(), chordal_coloring_register::RegisterBinding(), and weighted_clique_register::RegisterBinding().
#define START_WTIME | ( | time_var | ) | time_var = p_cpu_wtime() |
Macro used to store the start time into time_var.
Definition at line 152 of file cpu_time.hpp.
#define STOP_TIME | ( | time_var | ) | time_var = p_cpu_time() - (time_var) |
Macro used to store the elapsed time into time_var.
Definition at line 136 of file cpu_time.hpp.
Referenced by CompilerWrapper::CompileFile(), vcd_utility::Exec(), DesignFlowManager::Exec(), CompilerWrapper::FillTreeManager(), BB_based_stg::InternalExec(), standard_hls::InternalExec(), easy_module_binding::InternalExec(), values_scheme::InternalExec(), mem_dominator_allocation::InternalExec(), mux_connection_binding::InternalExec(), allocation::InternalExec(), parametric_list_based::InternalExec(), cdfc_module_binding::InternalExec(), main(), vertex_coloring_register::RegisterBinding(), unique_binding_register::RegisterBinding(), chordal_coloring_register::RegisterBinding(), and weighted_clique_register::RegisterBinding().
#define STOP_WTIME | ( | time_var | ) | time_var = p_cpu_wtime() - (time_var) |
Macro used to store the elapsed time into time_var.
Definition at line 155 of file cpu_time.hpp.
#define TIMES_TICKS_PER_SEC 60 |
Definition at line 71 of file cpu_time.hpp.
Referenced by p_cpu_time().
|
inline |
Definition at line 126 of file cpu_time.hpp.
References INDENT_OUT_MEX, and print_cpu_time().
Referenced by CompilerWrapper::CompileFile(), CompilerWrapper::FillTreeManager(), and main().
|
inline |
return a long which represents the elapsed processor time in milliseconds since some constant reference
Definition at line 78 of file cpu_time.hpp.
References times(), and TIMES_TICKS_PER_SEC.
Referenced by p_cpu_wtime().
|
inline |
return a long which represents the elapsed wall processor time in milliseconds since some constant reference
Definition at line 142 of file cpu_time.hpp.
References p_cpu_time().
|
inline |
massage a long which represents a time interval in milliseconds, into a string suitable for output
Definition at line 110 of file cpu_time.hpp.
Referenced by dump_exec_time(), vcd_utility::Exec(), DesignFlowManager::Exec(), BB_based_stg::InternalExec(), easy_module_binding::InternalExec(), values_scheme::InternalExec(), mem_dominator_allocation::InternalExec(), mux_connection_binding::InternalExec(), allocation::InternalExec(), parametric_list_based::InternalExec(), cdfc_module_binding::InternalExec(), main(), vertex_coloring_register::RegisterBinding(), unique_binding_register::RegisterBinding(), chordal_coloring_register::RegisterBinding(), and weighted_clique_register::RegisterBinding().