Lines Matching refs:Workload
30 std::unique_ptr<Workload> Workload::CreateWorkload(const std::vector<std::string>& args) { in CreateWorkload()
31 std::unique_ptr<Workload> workload(new Workload(args, std::function<void()>())); in CreateWorkload()
38 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void()>& function) { in CreateWorkload()
39 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload()
46 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd()
56 Workload::Workload(const std::vector<std::string>& args, const std::function<void()>& function) in Workload() function in simpleperf::Workload
66 Workload::~Workload() { in ~Workload()
68 if (!Workload::WaitChildProcess(false, false, nullptr)) { in ~Workload()
70 Workload::WaitChildProcess(true, true, nullptr); in ~Workload()
81 bool Workload::CreateNewProcess() { in CreateNewProcess()
123 void Workload::ChildProcessFn(int start_signal_fd, int exec_child_fd) { in ChildProcessFn()
155 bool Workload::Start() { in Start()
177 bool Workload::WaitChildProcess(int* exit_code) { in WaitChildProcess()
181 bool Workload::WaitChildProcess(bool wait_forever, bool is_child_killed, int* exit_code) { in WaitChildProcess()