// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "remoting/protocol/performance_tracker.h" #include "base/functional/bind.h" #include "base/time/time.h" #include "remoting/protocol/frame_stats.h" namespace { // Constant used to calculate the average for rate metrics. constexpr int kStatsUpdatePeriodSeconds = …; // We take the last 10 latency numbers and report the average. constexpr int kLatencySampleSize = …; } // namespace namespace remoting::protocol { PerformanceTracker::PerformanceTracker() : … { … } PerformanceTracker::~PerformanceTracker() = default; void PerformanceTracker::OnVideoFrameStats(const FrameStats& stats) { … } } // namespace remoting::protocol