MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Dblqh::IOTracker Struct Reference

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)

Public Attributes

Uint32 m_log_part_no
Uint32 m_current_time
Uint32 m_save_pos
Uint32 m_save_written_bytes [SLIDING_WINDOW_HISTORY_LEN]
Uint32 m_save_elapsed_millis [SLIDING_WINDOW_HISTORY_LEN]
Uint32 m_curr_written_bytes
Uint32 m_curr_elapsed_millis
Uint32 m_sum_outstanding_bytes
Uint32 m_lag_cnt
Uint32 m_sample_sent_bytes
Uint32 m_sample_completed_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.

Here is the call graph for this function:

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: