Thrill
0.1
|
Definition at line 45 of file iostats.hpp.
#include <iostats.hpp>
Classes | |
class | scoped_read_timer |
class | scoped_read_write_timer |
class | scoped_write_timer |
Public Member Functions | |
file_stats (unsigned int device_id) | |
construct zero initialized More... | |
unsigned | get_device_id () const |
external_size_type | get_read_bytes () const |
unsigned | get_read_count () const |
double | get_read_time () const |
external_size_type | get_write_bytes () const |
unsigned | get_write_count () const |
double | get_write_time () const |
void | read_canceled (const size_t size_) |
void | read_finished () |
void | read_op_finished (const size_t size_, double duration) |
void | read_started (const size_t size_, double now=0.0) |
void | write_canceled (const size_t size_) |
void | write_finished () |
void | write_op_finished (const size_t size_, double duration) |
void | write_started (const size_t size_, double now=0.0) |
Private Attributes | |
int | acc_reads_ |
number of requests, participating in parallel operation More... | |
int | acc_writes_ |
const unsigned | device_id_ |
associated device id More... | |
double | p_begin_read_ |
start time of parallel operation More... | |
double | p_begin_write_ |
external_size_type | read_bytes_ |
number of bytes read/written More... | |
unsigned | read_count_ |
number of operations: read/write More... | |
std::mutex | read_mutex_ |
double | read_time_ |
seconds spent in operations More... | |
external_size_type | write_bytes_ |
unsigned | write_count_ |
std::mutex | write_mutex_ |
double | write_time_ |
|
explicit |
construct zero initialized
Definition at line 35 of file iostats.cpp.
|
inline |
Returns the device id.
Definition at line 187 of file iostats.hpp.
References file_stats::device_id_.
|
inline |
Returns number of bytes read from disks.
Definition at line 208 of file iostats.hpp.
References file_stats::read_bytes_.
Referenced by stats_data::stats_data().
|
inline |
Returns total number of read_count_.
Definition at line 194 of file iostats.hpp.
References file_stats::read_count_.
Referenced by stats_data::stats_data().
|
inline |
Time that would be spent in read syscalls if all parallel read_count_ were serialized.
Definition at line 223 of file iostats.hpp.
References file_stats::read_time_.
Referenced by stats_data::stats_data().
|
inline |
Returns number of bytes written to the disks.
Definition at line 215 of file iostats.hpp.
References file_stats::write_bytes_.
Referenced by stats_data::stats_data().
|
inline |
Returns total number of write_count_.
Definition at line 201 of file iostats.hpp.
References file_stats::write_count_.
Referenced by stats_data::stats_data().
|
inline |
Time that would be spent in write syscalls if all parallel write_count_ were serialized.
Definition at line 231 of file iostats.hpp.
References file_stats::read_canceled(), file_stats::read_finished(), file_stats::read_op_finished(), file_stats::read_started(), file_stats::write_canceled(), file_stats::write_finished(), file_stats::write_op_finished(), file_stats::write_started(), and file_stats::write_time_.
Referenced by stats_data::stats_data().
void read_canceled | ( | const size_t | size_ | ) |
Definition at line 115 of file iostats.cpp.
References file_stats::read_bytes_, file_stats::read_count_, file_stats::read_finished(), and file_stats::read_mutex_.
Referenced by file_stats::get_write_time().
void read_finished | ( | ) |
Definition at line 126 of file iostats.cpp.
References file_stats::acc_reads_, singleton< stats >::get_instance(), file_stats::p_begin_read_, stats::p_read_finished(), file_stats::read_mutex_, file_stats::read_time_, and foxxll::timestamp().
Referenced by file_stats::get_write_time(), file_stats::read_canceled(), file_stats::scoped_read_write_timer::stop(), and file_stats::scoped_read_timer::stop().
void read_op_finished | ( | const size_t | size_, |
double | duration | ||
) |
Definition at line 141 of file iostats.cpp.
References file_stats::read_bytes_, file_stats::read_count_, file_stats::read_mutex_, and file_stats::read_time_.
Referenced by file_stats::get_write_time().
void read_started | ( | const size_t | size_, |
double | now = 0.0 |
||
) |
Definition at line 97 of file iostats.cpp.
References file_stats::acc_reads_, singleton< stats >::get_instance(), file_stats::p_begin_read_, stats::p_read_started(), file_stats::read_bytes_, file_stats::read_count_, file_stats::read_mutex_, file_stats::read_time_, and foxxll::timestamp().
Referenced by file_stats::get_write_time(), file_stats::scoped_read_write_timer::start(), and file_stats::scoped_read_timer::start().
void write_canceled | ( | const size_t | size_ | ) |
Definition at line 62 of file iostats.cpp.
References file_stats::write_bytes_, file_stats::write_count_, file_stats::write_finished(), and file_stats::write_mutex_.
Referenced by file_stats::get_write_time().
void write_finished | ( | ) |
Definition at line 73 of file iostats.cpp.
References file_stats::acc_writes_, singleton< stats >::get_instance(), file_stats::p_begin_write_, stats::p_write_finished(), foxxll::timestamp(), file_stats::write_mutex_, and file_stats::write_time_.
Referenced by file_stats::get_write_time(), file_stats::scoped_read_write_timer::stop(), file_stats::scoped_write_timer::stop(), and file_stats::write_canceled().
void write_op_finished | ( | const size_t | size_, |
double | duration | ||
) |
Definition at line 88 of file iostats.cpp.
References file_stats::write_bytes_, file_stats::write_count_, file_stats::write_mutex_, and file_stats::write_time_.
Referenced by file_stats::get_write_time().
void write_started | ( | const size_t | size_, |
double | now = 0.0 |
||
) |
Definition at line 44 of file iostats.cpp.
References file_stats::acc_writes_, singleton< stats >::get_instance(), file_stats::p_begin_write_, stats::p_write_started(), foxxll::timestamp(), file_stats::write_bytes_, file_stats::write_count_, file_stats::write_mutex_, and file_stats::write_time_.
Referenced by file_stats::get_write_time(), file_stats::scoped_read_write_timer::start(), and file_stats::scoped_write_timer::start().
|
private |
number of requests, participating in parallel operation
Definition at line 60 of file iostats.hpp.
Referenced by file_stats::read_finished(), and file_stats::read_started().
|
private |
Definition at line 60 of file iostats.hpp.
Referenced by file_stats::write_finished(), and file_stats::write_started().
|
private |
associated device id
Definition at line 48 of file iostats.hpp.
Referenced by file_stats::get_device_id(), file_stats_data::get_device_id(), file_stats_data::operator+(), and file_stats_data::operator-().
|
private |
start time of parallel operation
Definition at line 57 of file iostats.hpp.
Referenced by file_stats::read_finished(), and file_stats::read_started().
|
private |
Definition at line 57 of file iostats.hpp.
Referenced by file_stats::write_finished(), and file_stats::write_started().
|
private |
number of bytes read/written
Definition at line 53 of file iostats.hpp.
Referenced by file_stats::get_read_bytes(), file_stats_data::get_read_bytes(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::read_canceled(), file_stats::read_op_finished(), and file_stats::read_started().
|
private |
number of operations: read/write
Definition at line 51 of file iostats.hpp.
Referenced by file_stats::get_read_count(), file_stats_data::get_read_count(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::read_canceled(), file_stats::read_op_finished(), and file_stats::read_started().
|
private |
Definition at line 62 of file iostats.hpp.
Referenced by file_stats::read_canceled(), file_stats::read_finished(), file_stats::read_op_finished(), and file_stats::read_started().
|
private |
seconds spent in operations
Definition at line 55 of file iostats.hpp.
Referenced by file_stats::get_read_time(), file_stats_data::get_read_time(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::read_finished(), file_stats::read_op_finished(), and file_stats::read_started().
|
private |
Definition at line 53 of file iostats.hpp.
Referenced by file_stats::get_write_bytes(), file_stats_data::get_write_bytes(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::write_canceled(), file_stats::write_op_finished(), and file_stats::write_started().
|
private |
Definition at line 51 of file iostats.hpp.
Referenced by file_stats::get_write_count(), file_stats_data::get_write_count(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::write_canceled(), file_stats::write_op_finished(), and file_stats::write_started().
|
private |
Definition at line 62 of file iostats.hpp.
Referenced by file_stats::write_canceled(), file_stats::write_finished(), file_stats::write_op_finished(), and file_stats::write_started().
|
private |
Definition at line 55 of file iostats.hpp.
Referenced by file_stats::get_write_time(), file_stats_data::get_write_time(), file_stats_data::operator+(), file_stats_data::operator-(), file_stats::write_finished(), file_stats::write_op_finished(), and file_stats::write_started().