OmniSciDB  c07336695a
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

◆ execution() [1/2]

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 Importer_NS::DataStreamSink::archivePlumber(), MapDHandler::broadcast_serialized_rows(), Importer_NS::Importer::checkpoint(), anonymous_namespace{UpdelStorageTest.cpp}::delete_and_immediately_vacuum_rows(), anonymous_namespace{UpdelStorageTest.cpp}::delete_and_vacuum_varlen_rows(), Parser::CopyTableStmt::execute(), MapDHandler::execute_first_step(), MapDHandler::execute_next_render_step(), MapDHandler::execute_rel_alg(), MapDHandler::execute_rel_alg_with_filter_push_down(), MapDHandler::execute_root_plan(), Buffer_Namespace::BufferMgr::findFreeBuffer(), Catalog_Namespace::Catalog::getMetadataForDict(), MapDHandler::import_geo_table(), MapDHandler::import_table(), Importer_NS::import_thread_delimited(), Importer_NS::ImportDriver::importGeoTable(), anonymous_namespace{UpdelStorageTest.cpp}::init_table_data(), Catalog_Namespace::Catalog::instantiateFragmenter(), main(), Calcite::ping(), populate_table_random(), anonymous_namespace{UpdelStorageTest.cpp}::prepare_table_for_delete(), Calcite::processImpl(), MapDHandler::render_vega(), scan_table_return_hash(), scan_table_return_hash_non_iter(), MapDHandler::sql_execute(), MapDHandler::sql_execute_impl(), MapDHandler::start_query(), MapDHandler::start_render_query(), TEST(), 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:

◆ execution() [2/2]

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: