Public Member Functions |
| STATIC_CONST (SAMPLE_TIME=128) |
| STATIC_CONST (SLIDING_WINDOW_LEN=1024) |
| STATIC_CONST (SLIDING_WINDOW_HISTORY_LEN=8) |
void | init (Uint32 partNo) |
int | tick (Uint32 now, Uint32 maxlag, Uint32 maxlag_cnt) |
void | send_io (Uint32 bytes) |
void | complete_io (Uint32 bytes) |
Detailed Description
Definition at line 1028 of file Dblqh.hpp.
Member Function Documentation
int Dblqh::IOTracker::tick |
( |
Uint32 |
now, |
|
|
Uint32 |
maxlag, |
|
|
Uint32 |
maxlag_cnt |
|
) |
| |
If we completed all io we sent during current sample... we can't have any problem...and we can't measure io throughput, so don't add measurement
We did have lag last second... increase m_lag_cnt and check if it has reached maxlag_cnt
We did not have lag...reset m_lag_cnt
And finally rotate sliding window
Definition at line 23991 of file DblqhMain.cpp.
Member Data Documentation
Uint32 Dblqh::IOTracker::m_curr_written_bytes |
Current sum of sliding window
Definition at line 1048 of file Dblqh.hpp.
Uint32 Dblqh::IOTracker::m_lag_cnt |
How many times did we pass lag-threshold
Definition at line 1059 of file Dblqh.hpp.
Uint32 Dblqh::IOTracker::m_sample_completed_bytes |
bytes completed during current sample
Definition at line 1069 of file Dblqh.hpp.
Uint32 Dblqh::IOTracker::m_sample_sent_bytes |
bytes send during current sample
Definition at line 1064 of file Dblqh.hpp.
Uint32 Dblqh::IOTracker::m_save_pos |
Keep sliding window of measurement
Definition at line 1041 of file Dblqh.hpp.
Uint32 Dblqh::IOTracker::m_sum_outstanding_bytes |
Currently outstanding bytes
Definition at line 1054 of file Dblqh.hpp.
The documentation for this struct was generated from the following files: