libfoedus-core
FOEDUS Core Library
|
A high-resolution stop watch. More...
A high-resolution stop watch.
Stop-watch has some overhead, so use instantiate this too frequently (per sec-ms: fine. per us: mmm. per ns: oh god).
Definition at line 30 of file stop_watch.hpp.
#include <stop_watch.hpp>
Public Member Functions | |
StopWatch () | |
void | start () |
Take current time tick. More... | |
uint64_t | stop () |
Take another current time tick. More... | |
uint64_t | peek_elapsed_ns () const |
uint64_t | elapsed_ns () const |
double | elapsed_us () const |
double | elapsed_ms () const |
double | elapsed_sec () const |
|
inline |
Definition at line 32 of file stop_watch.hpp.
References start().
|
inline |
Definition at line 48 of file stop_watch.hpp.
Referenced by foedus::storage::StorageManagerPimpl::clone_all_storage_metadata(), foedus::storage::array::ArrayComposer::compose(), foedus::storage::hash::HashComposer::compose(), foedus::storage::masstree::MasstreeComposer::compose(), foedus::storage::sequential::SequentialComposer::compose(), foedus::storage::masstree::MasstreeComposer::construct_root(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages_parallel(), foedus::xct::XctManagerPimpl::handle_epoch_chime_wait_grace_period(), foedus::memory::PagePoolPimpl::initialize_once(), foedus::storage::StorageManagerPimpl::initialize_read_latest_snapshot(), foedus::snapshot::SnapshotManagerPimpl::read_snapshot_metadata(), foedus::storage::StorageManagerPimpl::reinitialize_for_recovered_snapshot(), foedus::snapshot::SnapshotManagerPimpl::snapshot_metadata(), foedus::storage::hash::HashPartitioner::sort_batch(), foedus::storage::array::ArrayPartitioner::sort_batch(), and foedus::memory::PagePoolPimpl::uninitialize_once().
|
inline |
Definition at line 42 of file stop_watch.hpp.
Referenced by foedus::memory::AlignedMemory::alloc(), foedus::xct::XctManagerPimpl::handle_epoch_chime_wait_grace_period(), and stop().
|
inline |
Definition at line 51 of file stop_watch.hpp.
Referenced by foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages_parallel(), foedus::snapshot::LogGleaner::execute(), and foedus::snapshot::LogMapper::handle_process().
|
inline |
Definition at line 45 of file stop_watch.hpp.
Referenced by foedus::storage::sequential::SequentialComposer::construct_root(), foedus::storage::masstree::design_partition_first_parallel(), foedus::cache::CacheHashtable::evict_main_loop(), foedus::cache::CacheHashtable::evict_overflow_loop(), foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root(), foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root_double(), foedus::cache::CacheManagerPimpl::handle_cleaner(), foedus::storage::array::ArrayStoragePimpl::prefetch_pages(), and foedus::storage::masstree::MasstreeStoragePimpl::prefetch_pages_normalized().
uint64_t foedus::debugging::StopWatch::peek_elapsed_ns | ( | ) | const |
Definition at line 39 of file stop_watch.cpp.
References foedus::debugging::get_now_nanosec().
void foedus::debugging::StopWatch::start | ( | ) |
Take current time tick.
Definition at line 30 of file stop_watch.cpp.
References foedus::debugging::get_now_nanosec().
Referenced by foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root(), foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root_double(), foedus::snapshot::SnapshotManagerPimpl::snapshot_metadata(), and StopWatch().
uint64_t foedus::debugging::StopWatch::stop | ( | ) |
Take another current time tick.
Returns elapsed nanosec.
Definition at line 35 of file stop_watch.cpp.
References elapsed_ns(), and foedus::debugging::get_now_nanosec().
Referenced by foedus::memory::AlignedMemory::alloc(), foedus::storage::StorageManagerPimpl::clone_all_storage_metadata(), foedus::storage::array::ArrayComposer::compose(), foedus::storage::hash::HashComposer::compose(), foedus::storage::masstree::MasstreeComposer::compose(), foedus::storage::sequential::SequentialComposer::compose(), foedus::storage::masstree::MasstreeComposer::construct_root(), foedus::storage::sequential::SequentialComposer::construct_root(), foedus::storage::masstree::design_partition_first_parallel(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages(), foedus::snapshot::SnapshotManagerPimpl::drop_volatile_pages_parallel(), foedus::cache::CacheHashtable::evict_main_loop(), foedus::cache::CacheHashtable::evict_overflow_loop(), foedus::snapshot::LogGleaner::execute(), foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root(), foedus::storage::masstree::MasstreeStoragePimpl::fatify_first_root_double(), foedus::cache::CacheManagerPimpl::handle_cleaner(), foedus::xct::XctManagerPimpl::handle_epoch_chime_wait_grace_period(), foedus::snapshot::LogMapper::handle_process(), foedus::memory::PagePoolPimpl::initialize_once(), foedus::storage::StorageManagerPimpl::initialize_read_latest_snapshot(), foedus::storage::array::ArrayStoragePimpl::prefetch_pages(), foedus::storage::masstree::MasstreeStoragePimpl::prefetch_pages_normalized(), foedus::snapshot::SnapshotManagerPimpl::read_snapshot_metadata(), foedus::storage::StorageManagerPimpl::reinitialize_for_recovered_snapshot(), foedus::snapshot::SnapshotManagerPimpl::snapshot_metadata(), foedus::storage::hash::HashPartitioner::sort_batch(), foedus::storage::array::ArrayPartitioner::sort_batch(), and foedus::memory::PagePoolPimpl::uninitialize_once().