mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-14 06:10:40 +01:00

This is a safe cleanup change since top-level const applied to parameters in function declarations (that are not also definitions) are ignored by the compiler. Hence, such changes do not change the type of the declared functions and are simply no-ops. Bug: webrtc:13610 Change-Id: Ibafb92c45119a6d8bdb6f9109aa8dad6385163a9 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/249086 Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35802}
58 lines
1.8 KiB
C++
58 lines
1.8 KiB
C++
/*
|
|
* Copyright (c) 2020 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef TEST_TESTSUPPORT_PERF_TEST_RESULT_WRITER_H_
|
|
#define TEST_TESTSUPPORT_PERF_TEST_RESULT_WRITER_H_
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <string>
|
|
|
|
#include "absl/strings/string_view.h"
|
|
#include "test/testsupport/perf_test.h"
|
|
|
|
namespace webrtc {
|
|
namespace test {
|
|
|
|
// Interface for classes that write perf results to some kind of JSON format.
|
|
class PerfTestResultWriter {
|
|
public:
|
|
virtual ~PerfTestResultWriter() = default;
|
|
|
|
virtual void ClearResults() = 0;
|
|
virtual void LogResult(absl::string_view graph_name,
|
|
absl::string_view trace_name,
|
|
double value,
|
|
absl::string_view units,
|
|
bool important,
|
|
webrtc::test::ImproveDirection improve_direction) = 0;
|
|
virtual void LogResultMeanAndError(
|
|
absl::string_view graph_name,
|
|
absl::string_view trace_name,
|
|
double mean,
|
|
double error,
|
|
absl::string_view units,
|
|
bool important,
|
|
webrtc::test::ImproveDirection improve_direction) = 0;
|
|
virtual void LogResultList(
|
|
absl::string_view graph_name,
|
|
absl::string_view trace_name,
|
|
rtc::ArrayView<const double> values,
|
|
absl::string_view units,
|
|
bool important,
|
|
webrtc::test::ImproveDirection improve_direction) = 0;
|
|
|
|
virtual std::string Serialize() const = 0;
|
|
};
|
|
|
|
} // namespace test
|
|
} // namespace webrtc
|
|
|
|
#endif // TEST_TESTSUPPORT_PERF_TEST_RESULT_WRITER_H_
|