summaryrefslogtreecommitdiffstats
path: root/src/time_histogram.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-06-02 10:11:17 +0300
committerHanoh Haim <hhaim@cisco.com>2016-06-02 10:11:17 +0300
commit9543174af7480c1ed46384ee60ae59f01995323d (patch)
treeab8acc63cbaf204b77b0851d1c6f209a52fd336c /src/time_histogram.h
parent5d9c9f449b98b43c736cc5908a21babac58c6428 (diff)
parent9f2cbf6d028aed1bc471b27b61c928c82b36ac9a (diff)
Merge readme
Diffstat (limited to 'src/time_histogram.h')
-rwxr-xr-xsrc/time_histogram.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/time_histogram.h b/src/time_histogram.h
index 9bdf2c93..da70e677 100755
--- a/src/time_histogram.h
+++ b/src/time_histogram.h
@@ -85,6 +85,8 @@ public:
return period_elem.get_max_usec();
}
void dump_json(std::string name,std::string & json );
+ uint64_t get_count() {return m_total_cnt;}
+ uint64_t get_high_count() {return m_total_cnt_high;}
private:
uint32_t get_usec(dsec_t d);
@@ -103,6 +105,8 @@ private:
// Each period we switch between the two
CTimeHistogramPerPeriodData m_period_data[2];
uint8_t m_period; // 0 or 1 according to m_period_data element we currently use
+ uint64_t m_total_cnt;
+ uint64_t m_total_cnt_high;
dsec_t m_max_dt; // Total maximum latency
dsec_t m_average; /* moving average */
uint32_t m_win_cnt;