Lines Matching refs:Workload
33 std::unique_ptr<Workload> Workload::CreateWorkload(const std::vector<std::string>& args) { in CreateWorkload()
40 std::unique_ptr<Workload> workload(new Workload(args, std::function<void()>())); in CreateWorkload()
47 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void()>& function) { in CreateWorkload()
48 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload()
55 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd()
65 Workload::Workload(const std::vector<std::string>& args, const std::function<void()>& function) in Workload() function in simpleperf::Workload
75 Workload::~Workload() { in ~Workload()
77 if (!Workload::WaitChildProcess(false, false, nullptr)) { in ~Workload()
79 Workload::WaitChildProcess(true, true, nullptr); in ~Workload()
90 bool Workload::CreateNewProcess() { in CreateNewProcess()
132 void Workload::ChildProcessFn(int start_signal_fd, int exec_child_fd) { in ChildProcessFn()
164 bool Workload::SetCpuAffinity(int cpu) { in SetCpuAffinity()
176 bool Workload::Start() { in Start()
198 bool Workload::WaitChildProcess(bool wait_forever, int* exit_code) { in WaitChildProcess()
202 bool Workload::WaitChildProcess(bool wait_forever, bool is_child_killed, int* exit_code) { in WaitChildProcess()