#include "cc/metrics/latency_ukm_reporter.h"
#include <climits>
#include <memory>
#include <utility>
#include "base/rand_util.h"
#include "cc/metrics/ukm_manager.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
namespace cc {
class LatencyUkmReporter::SamplingController { … };
LatencyUkmReporter::LatencyUkmReporter()
: … { … }
LatencyUkmReporter::~LatencyUkmReporter() = default;
void LatencyUkmReporter::ReportCompositorLatencyUkm(
const CompositorFrameReporter::FrameReportTypes& report_types,
const std::vector<CompositorFrameReporter::StageData>& stage_history,
const ActiveTrackers& active_trackers,
const CompositorFrameReporter::ProcessedBlinkBreakdown&
processed_blink_breakdown,
const CompositorFrameReporter::ProcessedVizBreakdown&
processed_viz_breakdown) { … }
void LatencyUkmReporter::ReportEventLatencyUkm(
const EventMetrics::List& events_metrics,
const std::vector<CompositorFrameReporter::StageData>& stage_history,
const CompositorFrameReporter::ProcessedBlinkBreakdown&
processed_blink_breakdown,
const CompositorFrameReporter::ProcessedVizBreakdown&
processed_viz_breakdown) { … }
void LatencyUkmReporter::InitializeUkmManager(
std::unique_ptr<ukm::UkmRecorder> recorder) { … }
void LatencyUkmReporter::SetSourceId(ukm::SourceId source_id) { … }
}