cpp-stat-bench 0.24.0
Benchmark library with statistics for C++.
Loading...
Searching...
No Matches
cdf_line_plot.h
Go to the documentation of this file.
1/*
2 * Copyright 2025 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
22#include <string>
23
26
27namespace stat_bench {
28namespace plots {
29
33class CdfLinePlot final : public IPlot {
34public:
38 CdfLinePlot() = default;
39
40 CdfLinePlot(const CdfLinePlot&) = delete;
41 CdfLinePlot(CdfLinePlot&&) = delete;
42 auto operator=(const CdfLinePlot&) -> CdfLinePlot& = delete;
43 auto operator=(CdfLinePlot&&) -> CdfLinePlot& = delete;
44
48 ~CdfLinePlot() override = default;
49
51 [[nodiscard]] auto name_for_file() const
52 -> const util::Utf8String& override;
53
55 void write(const measurer::MeasurerName& measurer_name,
56 const BenchmarkGroupName& group_name,
57 const std::vector<measurer::Measurement>& measurements,
58 const std::string& file_path) override;
59
60private:
62 util::Utf8String name_for_file_{"cdf"};
63};
64
65} // namespace plots
66} // namespace stat_bench
Class of names of groups of benchmarks.
auto name_for_file() const -> const util::Utf8String &override
Get a name for output files.
CdfLinePlot()=default
Constructor.
void write(const measurer::MeasurerName &measurer_name, const BenchmarkGroupName &group_name, const std::vector< measurer::Measurement > &measurements, const std::string &file_path) override
Write a plot.
~CdfLinePlot() override=default
Destructor.
IPlot()=default
Constructor.
Definition of IPlot class.
Namespace of classes to measure time in benchmarks.
Namespace of plotting.
Definition box_plot.h:28
Namespace of utility functions and classes.
Namespace of stat_bench source codes.
STL namespace.
Definition of Utf8String class.