OmniSciDB  a5dc49c757
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
measure< TimeT > Struct Template Reference

#include <measure.h>

Static Public Member Functions

template<typename F , typename... Args>
static TimeT::rep execution (F func, Args &&...args)
 
template<typename F , typename... Args>
static TimeT::rep execution (F func, Args &&...args)
 

Detailed Description

template<typename TimeT = std::chrono::milliseconds>
struct measure< TimeT >

Definition at line 27 of file sample.cpp.

Member Function Documentation

template<typename TimeT = std::chrono::milliseconds>
template<typename F , typename... Args>
static TimeT::rep measure< TimeT >::execution ( func,
Args &&...  args 
)
inlinestatic

Definition at line 29 of file sample.cpp.

References run_benchmark_import::args.

Referenced by DBHandler::alterSession(), DBHandler::alterSystemClear(), DBHandler::broadcast_serialized_rows(), import_export::Importer::checkpoint(), anonymous_namespace{TableArchiver.cpp}::drop_render_group_columns(), Parser::CopyTableStmt::execute(), DBHandler::execute_next_render_step(), DBHandler::execute_query_step(), DBHandler::execute_rel_alg(), DBHandler::executeDdl(), import_export::anonymous_namespace{Importer.cpp}::explode_collections_step2(), Buffer_Namespace::BufferMgr::findFreeBuffer(), Catalog_Namespace::Catalog::getMetadataForDict(), DBHandler::import_table(), import_export::import_thread_delimited(), QueryRunner::ImportDriver::importGeoTable(), DBHandler::importGeoTableSingle(), Catalog_Namespace::Catalog::instantiateFragmenter(), main(), Calcite::ping(), DBHandler::process_deferred_copy_from(), Calcite::processImpl(), ArrowCsvForeignStorage::registerTable(), DBHandler::render_vega(), TableArchiver::restoreTable(), anonymous_namespace{TableArchiver.cpp}::run(), DBHandler::sql_execute(), DBHandler::sql_execute_df(), DBHandler::sql_execute_local(), DBHandler::start_query(), DBHandler::start_render_query(), Calcite::updateMetadata(), and anonymous_namespace{DdlCommandExecutor.cpp}::vacuum_table_if_required().

29  {
30  auto start = std::chrono::steady_clock::now();
31  func(std::forward<Args>(args)...);
32  auto duration =
33  std::chrono::duration_cast<TimeT>(std::chrono::steady_clock::now() - start);
34  return duration.count();
35  }

+ Here is the caller graph for this function:

template<typename TimeT = std::chrono::milliseconds>
template<typename F , typename... Args>
static TimeT::rep measure< TimeT >::execution ( func,
Args &&...  args 
)
inlinestatic

Definition at line 32 of file measure.h.

References run_benchmark_import::args.

32  {
33  auto start = std::chrono::steady_clock::now();
34  func(std::forward<Args>(args)...);
35  auto duration =
36  std::chrono::duration_cast<TimeT>(std::chrono::steady_clock::now() - start);
37  return duration.count();
38  }

The documentation for this struct was generated from the following files: