blob: fa4f8ad36a6572dd96101af5696d9b8764e40a99 [file] [log] [blame]
// Copyright 2022 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CC_METRICS_CUSTOM_METRICS_RECORDER_H_
#define CC_METRICS_CUSTOM_METRICS_RECORDER_H_
#include "cc/cc_export.h"
namespace cc {
// Customize cc metric recording. E.g. reporting metrics under different names.
class CC_EXPORT CustomMetricRecorder {
public:
static CustomMetricRecorder* Get();
// Invoked to report "PercentDroppedFrames_1sWindow".
virtual void ReportPercentDroppedFramesInOneSecoundWindow(double percent) = 0;
protected:
CustomMetricRecorder();
virtual ~CustomMetricRecorder();
};
} // namespace cc
#endif // CC_METRICS_CUSTOM_METRICS_RECORDER_H_