OmniSciDB  1dac507f6e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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 MapDHandler::broadcast_serialized_rows(), Importer_NS::Importer::checkpoint(), Parser::CopyTableStmt::execute(), MapDHandler::execute_next_render_step(), MapDHandler::execute_query_step(), MapDHandler::execute_rel_alg(), MapDHandler::execute_rel_alg_df(), MapDHandler::execute_rel_alg_with_filter_push_down(), MapDHandler::execute_root_plan(), Importer_NS::anonymous_namespace{Importer.cpp}::explode_collections_step2(), Buffer_Namespace::BufferMgr::findFreeBuffer(), Catalog_Namespace::Catalog::getMetadataForDict(), MapDHandler::import_geo_table(), MapDHandler::import_table(), Importer_NS::import_thread_delimited(), Importer_NS::ImportDriver::importGeoTable(), Catalog_Namespace::Catalog::instantiateFragmenter(), main(), Calcite::ping(), Calcite::processImpl(), MapDHandler::render_vega(), Catalog_Namespace::Catalog::restoreTable(), Catalog_Namespace::run(), MapDHandler::sql_execute(), MapDHandler::sql_execute_df(), MapDHandler::sql_execute_impl(), MapDHandler::start_query(), MapDHandler::start_render_query(), and Calcite::updateMetadata().

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 30 of file measure.h.

References run_benchmark_import::args.

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

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