summaryrefslogtreecommitdiffstats
path: root/src/time_histogram.h
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-06-02 15:17:46 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-06-02 15:18:06 +0300
commitf26d353e820577c133d26b283bea66c4febeecc3 (patch)
tree16aa0decfacdce57b0c4bdc1b7026f190fd263a9 /src/time_histogram.h
parent825a35322828e53080549c4f09bb9469d7806387 (diff)
flow latency json changes
Diffstat (limited to 'src/time_histogram.h')
-rwxr-xr-xsrc/time_histogram.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/time_histogram.h b/src/time_histogram.h
index da70e677..0d532f1b 100755
--- a/src/time_histogram.h
+++ b/src/time_histogram.h
@@ -24,11 +24,12 @@ limitations under the License.
#include <stdint.h>
-#include "os_time.h"
#include <stdio.h>
#include <math.h>
-#include "mbuf.h"
#include <string>
+#include <json/json.h>
+#include "mbuf.h"
+#include "os_time.h"
class CTimeHistogramPerPeriodData {
public:
@@ -85,6 +86,7 @@ public:
return period_elem.get_max_usec();
}
void dump_json(std::string name,std::string & json );
+ void dump_json(Json::Value & json, bool add_histogram = true);
uint64_t get_count() {return m_total_cnt;}
uint64_t get_high_count() {return m_total_cnt_high;}