#include "media/remoting/metrics.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogram_macros.h"
#include "media/base/sample_rates.h"
namespace media {
namespace remoting {
namespace {
constexpr int kInfiniteRatio = …;
constexpr int kCommonAspectRatios100[] = …;
constexpr int kVideoWidthBuckets[] = …;
}
SessionMetricsRecorder::SessionMetricsRecorder()
: … { … }
SessionMetricsRecorder::~SessionMetricsRecorder() = default;
void SessionMetricsRecorder::WillStartSession(StartTrigger trigger) { … }
void SessionMetricsRecorder::DidStartSession() { … }
void SessionMetricsRecorder::StartSessionFailed(
mojom::RemotingStartFailReason reason) { … }
void SessionMetricsRecorder::WillStopSession(StopTrigger trigger) { … }
void SessionMetricsRecorder::OnPipelineMetadataChanged(
const PipelineMetadata& metadata) { … }
void SessionMetricsRecorder::OnRemotePlaybackDisabled(bool disabled) { … }
void SessionMetricsRecorder::RecordVideoPixelRateSupport(
PixelRateSupport support) { … }
void SessionMetricsRecorder::RecordCompatibility(
RemotingCompatibility compatibility) { … }
void SessionMetricsRecorder::RecordAudioConfiguration() { … }
void SessionMetricsRecorder::RecordVideoConfiguration() { … }
void SessionMetricsRecorder::RecordTrackConfiguration() { … }
RendererMetricsRecorder::RendererMetricsRecorder()
: … { … }
RendererMetricsRecorder::~RendererMetricsRecorder() = default;
void RendererMetricsRecorder::OnRendererInitialized() { … }
void RendererMetricsRecorder::OnEvidenceOfPlayoutAtReceiver() { … }
void RendererMetricsRecorder::OnAudioRateEstimate(int kilobits_per_second) { … }
void RendererMetricsRecorder::OnVideoRateEstimate(int kilobits_per_second) { … }
}
}