#include "third_party/blink/renderer/platform/peerconnection/stats_collector.h"
#include <algorithm>
#include "base/check.h"
#include "base/logging.h"
#include "media/base/video_codecs.h"
namespace blink {
namespace {
constexpr float kProcessingTimeHistogramMinValue_ms = …;
constexpr float kProcessingTimeHistogramMaxValue_ms = …;
constexpr wtf_size_t kProcessingTimeHistogramBuckets = …;
constexpr float kProcessingTimePercentileToReport = …;
constexpr base::TimeDelta kProcessingStatsReportingPeriod = …;
}
StatsCollector::StatsCollector(bool is_decode,
media::VideoCodecProfile codec_profile,
StoreProcessingStatsCB stats_callback)
: … { … }
void StatsCollector::StartStatsCollection() { … }
void StatsCollector::ClearStatsCollection() { … }
void StatsCollector::ReportStats() const { … }
void StatsCollector::AddProcessingTime(int pixel_size,
bool is_hardware_accelerated,
const float processing_time_ms,
size_t new_keyframes,
const base::TimeTicks& now) { … }
}