7
7
#include < sstream>
8
8
#include < utility>
9
9
10
- ppc::core::Perf::Perf (const std::shared_ptr<Task> & task) { SetTask (task); }
10
+ ppc::core::Perf::Perf (const std::shared_ptr<Task>& task) { SetTask (task); }
11
11
12
- void ppc::core::Perf::SetTask (const std::shared_ptr<Task> & task) {
12
+ void ppc::core::Perf::SetTask (const std::shared_ptr<Task>& task) {
13
13
task->get_data ()->state_of_testing = TaskData::StateOfTesting::PERF;
14
14
this ->task = task;
15
15
}
16
16
17
17
void ppc::core::Perf::PipelineRun (const std::shared_ptr<PerfAttr>& perf_attr,
18
- const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
18
+ const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
19
19
perf_results->type_of_running = PerfResults::TypeOfRunning::PIPELINE;
20
20
21
21
CommonRun (
@@ -30,7 +30,7 @@ void ppc::core::Perf::PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,
30
30
}
31
31
32
32
void ppc::core::Perf::TaskRun (const std::shared_ptr<PerfAttr>& perf_attr,
33
- const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
33
+ const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
34
34
perf_results->type_of_running = PerfResults::TypeOfRunning::TASK_RUN;
35
35
36
36
task->validation ();
@@ -45,7 +45,7 @@ void ppc::core::Perf::TaskRun(const std::shared_ptr<PerfAttr>& perf_attr,
45
45
}
46
46
47
47
void ppc::core::Perf::CommonRun (const std::shared_ptr<PerfAttr>& perf_attr, const std::function<void ()>& pipeline,
48
- const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
48
+ const std::shared_ptr<ppc::core::PerfResults>& perf_results) {
49
49
auto begin = perf_attr->current_timer ();
50
50
for (uint64_t i = 0 ; i < perf_attr->num_running ; i++) {
51
51
pipeline ();
0 commit comments