Stxxl
1.3.1
|
Collects various I/O statistics. More...
#include <iostats.h>
Inherits singleton< stats >.
Public Types | |
enum | wait_op_type { WAIT_OP_ANY, WAIT_OP_READ, WAIT_OP_WRITE } |
Public Member Functions | |
unsigned | get_reads () const |
Returns total number of reads. More... | |
unsigned | get_writes () const |
Returns total number of writes. More... | |
int64 | get_read_volume () const |
Returns number of bytes read from disks. More... | |
int64 | get_written_volume () const |
Returns number of bytes written to the disks. More... | |
unsigned | get_cached_reads () const |
Returns total number of reads served from cache. More... | |
unsigned | get_cached_writes () const |
Returns total number of cached writes. More... | |
int64 | get_cached_read_volume () const |
Returns number of bytes read from cache. More... | |
int64 | get_cached_written_volume () const |
Returns number of bytes written to the cache. More... | |
double | get_read_time () const |
Time that would be spent in read syscalls if all parallel reads were serialized. More... | |
double | get_write_time () const |
Time that would be spent in write syscalls if all parallel writes were serialized. More... | |
double | get_pread_time () const |
Period of time when at least one I/O thread was executing a read. More... | |
double | get_pwrite_time () const |
Period of time when at least one I/O thread was executing a write. More... | |
double | get_pio_time () const |
Period of time when at least one I/O thread was executing a read or a write. More... | |
double | get_io_wait_time () const |
I/O wait time counter. More... | |
double | get_wait_read_time () const |
double | get_wait_write_time () const |
double | get_last_reset_time () const |
Return time of the last reset. More... | |
_STXXL_DEPRECATED (void reset()) | |
Resets I/O time counters (including I/O wait counter) More... | |
_STXXL_DEPRECATED (void _reset_io_wait_time()) | |
Resets I/O wait time counter. More... | |
void | write_started (unsigned_type size_, double now=0.0) |
void | write_canceled (unsigned_type size_) |
void | write_finished () |
void | write_cached (unsigned_type size_) |
void | read_started (unsigned_type size_, double now=0.0) |
void | read_canceled (unsigned_type size_) |
void | read_finished () |
void | read_cached (unsigned_type size_) |
void | wait_started (wait_op_type wait_op) |
void | wait_finished (wait_op_type wait_op) |
Collects various I/O statistics.
stats::_STXXL_DEPRECATED | ( | void | reset() | ) |
Resets I/O time counters (including I/O wait counter)
Referenced by get_last_reset_time().
stats::_STXXL_DEPRECATED | ( | void | _reset_io_wait_time() | ) |
Resets I/O wait time counter.
|
inline |
Returns number of bytes read from cache.
Referenced by get_last_reset_time().
|
inline |
Returns total number of reads served from cache.
Referenced by get_last_reset_time().
|
inline |
Returns total number of cached writes.
Referenced by get_last_reset_time().
|
inline |
Returns number of bytes written to the cache.
Referenced by get_last_reset_time().
|
inline |
I/O wait time counter.
wait_any
and wait_all
Referenced by get_last_reset_time().
|
inline |
Return time of the last reset.
References _STXXL_DEPRECATED(), get_cached_read_volume(), get_cached_reads(), get_cached_writes(), get_cached_written_volume(), get_io_wait_time(), get_last_reset_time(), get_pio_time(), get_pread_time(), get_pwrite_time(), get_read_time(), get_read_volume(), get_reads(), get_write_time(), get_writes(), and get_written_volume().
Referenced by get_last_reset_time().
|
inline |
Period of time when at least one I/O thread was executing a read or a write.
Referenced by get_last_reset_time().
|
inline |
Period of time when at least one I/O thread was executing a read.
Referenced by get_last_reset_time().
|
inline |
Period of time when at least one I/O thread was executing a write.
Referenced by get_last_reset_time().
|
inline |
Time that would be spent in read syscalls if all parallel reads were serialized.
Referenced by get_last_reset_time().
|
inline |
Returns number of bytes read from disks.
Referenced by get_last_reset_time().
|
inline |
|
inline |
Time that would be spent in write syscalls if all parallel writes were serialized.
Referenced by get_last_reset_time().
|
inline |
|
inline |
Returns number of bytes written to the disks.
Referenced by get_last_reset_time().