X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=print_latency.h;h=d80ac88e96a25ac04f6f64a27f921edd9c45ff59;hb=ffd68fbfb90242069af957f2a28908f0559f8348;hp=3b0adb1e77244e0b422e93118e6c36c1e92295d4;hpb=da648fc65da0b5f8e96ff39ce52bdd00fa29b5dc;p=nageru diff --git a/print_latency.h b/print_latency.h index 3b0adb1..d80ac88 100644 --- a/print_latency.h +++ b/print_latency.h @@ -21,12 +21,12 @@ struct ReceivedTimestamps { 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>> histograms; + // Indices: card number, frame history number, b-frame or not (1/0, where 2 counts both). + std::vector>> summaries; }; ReceivedTimestamps find_received_timestamp(const std::vector &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)