OmniSciDB
a5dc49c757
|
#include <chrono>
#include <iomanip>
#include <sstream>
#include <type_traits>
#include "Logger/Logger.h"
Go to the source code of this file.
Classes | |
struct | measure< TimeT > |
class | Timer< TimeT > |
struct | InjectTimer |
Macros | |
#define | INJECT_TIMER(DESC) InjectTimer DESC(#DESC, __LINE__, __FUNCTION__) |
#define | TIME_WRAP(FUNC) time_wrap<decltype(&FUNC), &FUNC> |
Functions | |
template<typename Type = std::chrono::steady_clock::time_point> | |
Type | timer_start () |
template<typename Type = std::chrono::steady_clock::time_point, typename TypeR = std::chrono::milliseconds> | |
TypeR::rep | timer_stop (Type clock_begin) |
template<typename Type = std::chrono::steady_clock::time_point, typename TypeR = std::chrono::milliseconds> | |
std::string | timer_lap (Type clock_begin, Type &clock_last) |
template<typename Fn , Fn fn, typename... Args> | |
std::result_of< Fn(Args...)>::type | time_wrap (Args...args) |
Variables | |
bool | g_enable_debug_timer |
const auto | timer_stop_microseconds |
#define INJECT_TIMER | ( | DESC | ) | InjectTimer DESC(#DESC, __LINE__, __FUNCTION__) |
Definition at line 122 of file measure.h.
Referenced by Executor::buildJoinLoops(), anonymous_namespace{ColumnFetcher.cpp}::columnarize_result(), Catalog_Namespace::Catalog::eraseTableMetadata(), Catalog_Namespace::Catalog::eraseTablePhysicalData(), Executor::executePlanWithGroupBy(), Executor::executePlanWithoutGroupBy(), RelAlgExecutor::executeRelAlgQuery(), RelAlgExecutor::executeRelAlgQueryNoRetry(), RelAlgExecutor::executeRelAlgQuerySingleStep(), RelAlgExecutor::executeRelAlgSeq(), RelAlgExecutor::executeRelAlgStep(), RelAlgExecutor::executeRelAlgSubSeq(), RelAlgExecutor::executeTableFunction(), Executor::executeTableFunction(), RelAlgExecutor::executeWorkUnit(), Executor::executeWorkUnitImpl(), Executor::fetchChunks(), Executor::fetchUnionChunks(), QueryExecutionContext::launchCpuCode(), QueryExecutionContext::launchGpuCode(), Catalog_Namespace::Catalog::removeTableFromMap(), and ExecutionKernel::run().
#define TIME_WRAP | ( | FUNC | ) | time_wrap<decltype(&FUNC), &FUNC> |
std::result_of<Fn(Args...)>::type time_wrap | ( | Args... | args | ) |
Definition at line 125 of file measure.h.
References run_benchmark_import::args.
std::string timer_lap | ( | Type | clock_begin, |
Type & | clock_last | ||
) |
Type timer_start | ( | ) |
Definition at line 42 of file measure.h.
Referenced by CodeGenerator::codegenDictLike(), RelAlgExecutor::executeRelAlgQueryNoRetry(), RelAlgExecutor::executeTableFunction(), Executor::executeUpdate(), RelAlgExecutor::executeWorkUnit(), Executor::executeWorkUnitPerFragment(), anonymous_namespace{Execute.cpp}::get_reduction_code(), import_export::import_thread_shapefile(), import_export::Importer::importGDALRaster(), InjectTimer::InjectTimer(), Executor::launchKernelsLocked(), Executor::launchKernelsViaResourceMgr(), ColumnFetcher::linearizeFixedLenArrayColFrags(), ColumnFetcher::linearizeVarLenArrayColFrags(), Executor::logSystemCPUMemoryStatus(), Executor::logSystemGPUMemoryStatus(), File_Namespace::FileMgr::openFiles(), Parser::InsertIntoTableAsSelectStmt::populateData(), RelAlgExecutor::prepareLeafExecution(), Timer< TimeT >::start(), CrossSectionTableFunctions::tf_cross_section_1d_impl(), CrossSectionTableFunctions::tf_cross_section_2d_impl(), and RelAlgTranslator::translateInOper().
TypeR::rep timer_stop | ( | Type | clock_begin | ) |
Definition at line 48 of file measure.h.
Referenced by Executor::CgenStateManager::CgenStateManager(), CodeGenerator::codegenDictLike(), RelAlgExecutor::executeRelAlgQueryNoRetry(), RelAlgExecutor::executeTableFunction(), Executor::executeUpdate(), RelAlgExecutor::executeWorkUnit(), Executor::executeWorkUnitPerFragment(), anonymous_namespace{Execute.cpp}::get_reduction_code(), Executor::launchKernelsLocked(), Executor::launchKernelsViaResourceMgr(), ColumnFetcher::linearizeFixedLenArrayColFrags(), ColumnFetcher::linearizeVarLenArrayColFrags(), Executor::logSystemCPUMemoryStatus(), Executor::logSystemGPUMemoryStatus(), File_Namespace::FileMgr::openFiles(), Parser::InsertIntoTableAsSelectStmt::populateData(), RelAlgExecutor::prepareLeafExecution(), Timer< TimeT >::stop(), CrossSectionTableFunctions::tf_cross_section_1d_impl(), CrossSectionTableFunctions::tf_cross_section_2d_impl(), RelAlgTranslator::translateInOper(), and InjectTimer::~InjectTimer().
bool g_enable_debug_timer |
Definition at line 17 of file Logger.cpp.
Referenced by CommandLineOptions::fillOptions(), InjectTimer::InjectTimer(), logger::newDuration(), CommandLineOptions::validate(), and InjectTimer::~InjectTimer().