1 | #pragma once |
---|---|
2 | #include "PerformanceTestInfo.h" |
3 | #include <vector> |
4 | #include <string> |
5 | |
6 | namespace DB |
7 | { |
8 | |
9 | class ReportBuilder |
10 | { |
11 | public: |
12 | ReportBuilder(const std::string & server_version_); |
13 | std::string buildFullReport( |
14 | const PerformanceTestInfo & test_info, |
15 | std::vector<TestStats> & stats, |
16 | const std::vector<std::size_t> & queries_to_run) const; |
17 | |
18 | |
19 | std::string buildCompactReport( |
20 | const PerformanceTestInfo & test_info, |
21 | std::vector<TestStats> & stats, |
22 | const std::vector<std::size_t> & queries_to_run) const; |
23 | |
24 | private: |
25 | std::string server_version; |
26 | std::string hostname; |
27 | size_t num_cores; |
28 | size_t num_threads; |
29 | size_t ram; |
30 | |
31 | private: |
32 | std::string getCurrentTime() const; |
33 | |
34 | }; |
35 | |
36 | } |
37 |