CbmRoot
Loading...
Searching...
No Matches
TimingsFormat.h
Go to the documentation of this file.
1/* Copyright (C) 2023-2024 FIAS Frankfurt Institute for Advanced Studies, Frankfurt / Main
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Felix Weiglhofer [committer]*/
4#ifndef CBM_ALGO_BASE_UTIL_TIMINGSFORMAT_H
5#define CBM_ALGO_BASE_UTIL_TIMINGSFORMAT_H
6
7#include "Definitions.h"
8
9#include <string>
10#include <string_view>
11
12namespace xpu
13{
14 class timings;
15}
16
17namespace cbm::algo
18{
19
23 std::string MakeReport(std::string_view title, const xpu::timings& t, size_t align = 40);
24
28 std::string MakeReportSubtimers(std::string_view title, const xpu::timings& t, size_t align = 40);
29
33 std::string MakeReportSummary(std::string_view, const xpu::timings& t, size_t align = 40);
34
38 std::string MakeReportYaml(const xpu::timings& t);
39
40} // namespace cbm::algo
41
42#endif
std::string MakeReportSubtimers(std::string_view title, const xpu::timings &t, size_t align)
Print timings from subtimers.
std::string MakeReportYaml(const xpu::timings &t)
Print timings in YAML format.
std::string MakeReport(std::string_view title, const xpu::timings &t, size_t align)
Print timings from top-level times and subtimers.
std::string MakeReportSummary(std::string_view title, const xpu::timings &t, size_t align)
Only print the top-level times (Elapsed time, total kernel time, memcpy and memset times)....