diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-06-02 15:17:46 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-06-02 15:18:06 +0300 |
commit | f26d353e820577c133d26b283bea66c4febeecc3 (patch) | |
tree | 16aa0decfacdce57b0c4bdc1b7026f190fd263a9 /src/time_histogram.h | |
parent | 825a35322828e53080549c4f09bb9469d7806387 (diff) |
flow latency json changes
Diffstat (limited to 'src/time_histogram.h')
-rwxr-xr-x | src/time_histogram.h | 6 |
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;} |