struct LatencyHistogram {
void init(const std::string &measuring_point); // Initializes histograms and registers them in global_metrics.
- // Indices: card number, frame history number, b-frame or not (1/0).
- std::vector<std::vector<std::unique_ptr<Histogram[]>>> histograms;
+ // Indices: card number, frame history number, b-frame or not (1/0, where 2 counts both).
+ std::vector<std::vector<std::unique_ptr<Summary[]>>> summaries;
};
ReceivedTimestamps find_received_timestamp(const std::vector<RefCountedFrame> &input_frames);
-void print_latency(const std::string &header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram);
+void print_latency(const char *header, const ReceivedTimestamps &received_ts, bool is_b_frame, int *frameno, LatencyHistogram *histogram);
#endif // !defined(_PRINT_LATENCY_H)