Thrill
0.1
|
Definition at line 486 of file iostats.hpp.
#include <iostats.hpp>
Classes | |
struct | summary |
Private Member Functions | |
template<typename T , typename Functor > | |
T | fetch_sum (const Functor &get_value) const |
aggregator More... | |
Private Attributes | |
double | elapsed_ |
std::vector< file_stats_data > | file_stats_data_list_ |
list of individual file statistics. More... | |
double | p_ios_ |
double | p_reads_ |
seconds spent in parallel io More... | |
double | p_writes_ |
double | t_wait |
seconds spent waiting for completion of I/O operations More... | |
double | t_wait_read_ |
double | t_wait_write_ |
Friends | |
std::ostream & | operator<< (std::ostream &o, const stats_data &s) |
|
inline |
Definition at line 518 of file iostats.hpp.
|
inline |
Definition at line 526 of file iostats.hpp.
References file_stats::get_read_bytes(), file_stats::get_read_count(), file_stats::get_read_time(), file_stats::get_write_bytes(), file_stats::get_write_count(), and file_stats::get_write_time().
|
private |
|
inline |
Retruns elapsed_ time
Definition at line 620 of file iostats.hpp.
Referenced by scoped_print_iostats::report().
double get_io_wait_time | ( | ) | const |
I/O wait time counter.
Definition at line 649 of file iostats.cpp.
stats_data::summary< double > get_pio_speed_summary | ( | ) | const |
Definition at line 640 of file iostats.cpp.
References stats::p_ios_.
double get_pio_time | ( | ) | const |
Period of time when at least one I/O thread was executing a read or a write.
Definition at line 599 of file iostats.cpp.
References stats::p_ios_.
stats_data::summary< double > get_pread_speed_summary | ( | ) | const |
Definition at line 613 of file iostats.cpp.
References stats::p_reads_.
double get_pread_time | ( | ) | const |
Period of time when at least one I/O thread was executing a read.
Definition at line 589 of file iostats.cpp.
References stats::p_reads_.
stats_data::summary< double > get_pwrite_speed_summary | ( | ) | const |
Definition at line 631 of file iostats.cpp.
References stats::p_writes_.
double get_pwrite_time | ( | ) | const |
Period of time when at least one I/O thread was executing a write.
Definition at line 594 of file iostats.cpp.
References stats::p_writes_.
external_size_type get_read_bytes | ( | ) | const |
Returns number of bytes read from disks in total.
Definition at line 527 of file iostats.cpp.
Referenced by Context::Launch(), and BlockPool::RunTask().
stats_data::summary< external_size_type > get_read_bytes_summary | ( | ) | const |
Returns sum, min, max, avarage and median of all read bytes.
Definition at line 534 of file iostats.cpp.
unsigned get_read_count | ( | ) | const |
Returns the sum of all read_count_.
Definition at line 497 of file iostats.cpp.
Referenced by BlockPool::RunTask().
stats_data::summary< unsigned > get_read_count_summary | ( | ) | const |
Retruns sum, min, max, avarage and median of all read_count_.
Definition at line 503 of file iostats.cpp.
stats_data::summary< double > get_read_speed_summary | ( | ) | const |
Definition at line 604 of file iostats.cpp.
double get_read_time | ( | ) | const |
Time that would be spent in read syscalls if all parallel read_count_ were serialized.
Definition at line 559 of file iostats.cpp.
stats_data::summary< double > get_read_time_summary | ( | ) | const |
Returns sum, min, max, avarage and median of all read times
Definition at line 565 of file iostats.cpp.
double get_wait_read_time | ( | ) | const |
Definition at line 654 of file iostats.cpp.
References stats::t_wait_read_.
double get_wait_write_time | ( | ) | const |
Definition at line 659 of file iostats.cpp.
References stats::t_wait_write_.
external_size_type get_write_bytes | ( | ) | const |
Returns number of bytes written to the disks in total.
Definition at line 543 of file iostats.cpp.
Referenced by Context::Launch(), and BlockPool::RunTask().
stats_data::summary< external_size_type > get_write_bytes_summary | ( | ) | const |
Returns sum, min, max, avarage and median of all written bytes.
Definition at line 550 of file iostats.cpp.
unsigned get_write_count | ( | ) | const |
Returns the sum of all write_count_.
Definition at line 512 of file iostats.cpp.
Referenced by BlockPool::RunTask().
stats_data::summary< unsigned > get_write_count_summary | ( | ) | const |
Returns sum, min, max, avarage and median of all write_count_.
Definition at line 518 of file iostats.cpp.
stats_data::summary< double > get_write_speed_summary | ( | ) | const |
Definition at line 622 of file iostats.cpp.
double get_write_time | ( | ) | const |
Time that would be spent in write syscalls if all parallel write_count_ were serialized.
Definition at line 574 of file iostats.cpp.
stats_data::summary< double > get_write_time_summary | ( | ) | const |
Returns sum, min, max, avarage and median of all write times
Definition at line 580 of file iostats.cpp.
size_t num_files | ( | ) | const |
Returns the number of file_stats_data objects.
Definition at line 492 of file iostats.cpp.
stats_data operator+ | ( | const stats_data & | a | ) | const |
Definition at line 444 of file iostats.cpp.
References stats_data::elapsed_, stats_data::file_stats_data_list_, tlx::merge_combine(), stats::p_ios_, stats_data::p_ios_, stats::p_reads_, stats_data::p_reads_, stats::p_writes_, stats_data::p_writes_, stats_data::t_wait, stats::t_wait_read_, stats_data::t_wait_read_, stats::t_wait_write_, and stats_data::t_wait_write_.
stats_data operator- | ( | const stats_data & | a | ) | const |
Definition at line 468 of file iostats.cpp.
References stats_data::elapsed_, stats_data::file_stats_data_list_, tlx::merge_combine(), stats::p_ios_, stats_data::p_ios_, stats::p_reads_, stats_data::p_reads_, stats::p_writes_, stats_data::p_writes_, stats_data::t_wait, stats::t_wait_read_, stats_data::t_wait_read_, stats::t_wait_write_, and stats_data::t_wait_write_.
void to_ostream | ( | std::ostream & | o, |
const std::string | line_prefix = "" |
||
) | const |
Definition at line 664 of file iostats.cpp.
References foxxll::add_IEC_binary_multiplier(), stats::get_io_wait_time(), stats::get_pio_time(), stats::get_pread_time(), stats::get_pwrite_time(), stats::get_wait_read_time(), and stats::get_wait_write_time().
|
friend |
Definition at line 635 of file iostats.hpp.
|
private |
Definition at line 495 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
list of individual file statistics.
Definition at line 498 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
Definition at line 489 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
seconds spent in parallel io
Definition at line 489 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
Definition at line 489 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
seconds spent waiting for completion of I/O operations
Definition at line 492 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
Definition at line 493 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().
|
private |
Definition at line 493 of file iostats.hpp.
Referenced by stats_data::operator+(), and stats_data::operator-().