18 #ifndef FOEDUS_DEBUGGING_DEBUGGING_SUPPORTS_HPP_
19 #define FOEDUS_DEBUGGING_DEBUGGING_SUPPORTS_HPP_
100 void initialize_glog();
105 void uninitialize_glog();
110 PapiCounters papi_counters_;
114 #endif // FOEDUS_DEBUGGING_DEBUGGING_SUPPORTS_HPP_
void set_debug_log_to_stderr(bool value)
Whether to write debug logs to stderr rather than log file.
void start_papi_counters()
Start collecting performance counters via PAPI if it's available.
ErrorStack uninitialize_once() override
long long int counters_[128]
wanna use int64_t, but to align with PAPI...
ErrorStack start_profile(const std::string &output_file)
Start running a CPU profiler (gperftools/PAPI).
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
ErrorStack initialize_once() override
Forward declarations of classes in root package.
Brings error stacktrace information as return value of functions.
Typical implementation of Initializable as a skeleton base class.
void set_debug_log_min_threshold(DebuggingOptions::DebugLogLevel level)
Debug logs below this level will be completely ignored.
static std::vector< std::string > describe_papi_counters(const PapiCounters &counters)
Returns a human-readable explanation of PAPI counters.
void set_debug_log_stderr_threshold(DebuggingOptions::DebugLogLevel level)
Debug logs at or above this level will be copied to stderr.
#define CXX11_FINAL
Used in public headers in place of "final" of C++11.
Database engine object that holds all resources and provides APIs.
void stop_profile()
Stop CPU profiling.
void set_verbose_module(const std::string &module, int verbose)
Per-module verbose level.
#define CXX11_OVERRIDE
Used in public headers in place of "override" of C++11.
#define CXX11_FUNC_DELETE
Used in public headers in place of " = delete" of C++11.
void stop_papi_counters()
Stop collecting performance counters via PAPI.
void set_verbose_log_level(int verbose)
Verbose debug logs (VLOG(m)) at or less than this number will be shown.
const PapiCounters & get_papi_counters() const
Returns the profiled PAPI counters.
APIs to support debugging functionalities.
Set of options for debugging support.
DebuggingSupports()=delete