Skip to content

Commit d2a4e7a

Browse files
committed
fix
1 parent 162c039 commit d2a4e7a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Diff for: modules/core/perf/include/perf.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ struct PerfResults {
2727
class Perf {
2828
public:
2929
// Init performance analysis with initialized task and initialized data
30-
explicit Perf(const std::shared_ptr<Task>& task);
30+
explicit Perf(const std::shared_ptr<Task>& task_ptr);
3131
// Set task with initialized task and initialized data for performance
3232
// analysis c
33-
void SetTask(const std::shared_ptr<Task>& task);
33+
void SetTask(const std::shared_ptr<Task>& task_ptr);
3434
// Check performance of full task's pipeline: pre_processing() ->
3535
// validation() -> run() -> post_processing()
3636
void PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,

Diff for: modules/core/perf/src/perf.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#include <sstream>
88
#include <utility>
99

10-
ppc::core::Perf::Perf(const std::shared_ptr<Task>& task) { SetTask(task); }
10+
ppc::core::Perf::Perf(const std::shared_ptr<Task>& task_ptr) { SetTask(task_ptr); }
1111

12-
void ppc::core::Perf::SetTask(const std::shared_ptr<Task>& task) {
13-
task->get_data()->state_of_testing = TaskData::StateOfTesting::PERF;
14-
this->task = task;
12+
void ppc::core::Perf::SetTask(const std::shared_ptr<Task>& task_ptr) {
13+
task_ptr->get_data()->state_of_testing = TaskData::StateOfTesting::PERF;
14+
this->task = task_ptr;
1515
}
1616

1717
void ppc::core::Perf::PipelineRun(const std::shared_ptr<PerfAttr>& perf_attr,

0 commit comments

Comments
 (0)