Searched refs:Workload (Results 1 – 12 of 12) sorted by relevance
/system/extras/simpleperf/ |
D | workload.cpp | 28 std::unique_ptr<Workload> Workload::CreateWorkload(const std::vector<std::string>& args) { in CreateWorkload() 29 std::unique_ptr<Workload> workload(new Workload(args, std::function<void ()>())); in CreateWorkload() 36 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void ()>& function) { in CreateWorkload() 37 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload() 44 bool Workload::RunCmd(const std::vector<std::string>& args, bool report_error) { in RunCmd() 54 Workload::Workload(const std::vector<std::string>& args, const std::function<void ()>& function) in Workload() function in 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() [all …]
|
D | workload.h | 28 class Workload { 38 static std::unique_ptr<Workload> CreateWorkload(const std::vector<std::string>& args); 39 static std::unique_ptr<Workload> CreateWorkload(const std::function<void ()>& function); 42 ~Workload(); 60 explicit Workload(const std::vector<std::string>& args, const std::function<void ()>& function); 75 DISALLOW_COPY_AND_ASSIGN(Workload);
|
D | workload_test.cpp | 30 auto workload = Workload::CreateWorkload({"sleep", "1"}); in TEST() 38 auto workload = Workload::CreateWorkload({"/dev/null"}); in TEST() 49 auto workload = Workload::CreateWorkload({"sleep", "10"}); in run_signaled_workload() 70 auto workload = Workload::CreateWorkload({"ls", "nonexistdir"}); in run_exit_nonzero_workload()
|
D | cmd_stat_test.cpp | 88 std::vector<std::unique_ptr<Workload>>* workloads) { in CreateProcesses() 92 std::unique_ptr<Workload> workload; in CreateProcesses() 93 workload = Workload::CreateWorkload(RunWorkloadFunction); in CreateProcesses() 101 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 109 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 293 ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); in TestStatingApps()
|
D | cmd_record_test.cpp | 284 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 312 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 322 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 331 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 426 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 531 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 578 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 664 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 690 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 718 std::vector<std::unique_ptr<Workload>> workloads; in TEST() [all …]
|
D | test_util.h | 31 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads);
|
D | cmd_record.cpp | 267 bool PrepareRecording(Workload* workload); 268 bool DoRecording(Workload* workload); 374 std::unique_ptr<Workload> workload; in Run() 376 workload = Workload::CreateWorkload(workload_args); in Run() 392 bool RecordCommand::PrepareRecording(Workload* workload) { in PrepareRecording() 549 bool RecordCommand::DoRecording(Workload* workload) { in DoRecording() 1449 if (!Workload::RunCmd({"mv", record_filename_, tmp_file->path})) { in PostUnwindRecords() 1481 if (!Workload::RunCmd({"mv", record_filename_, tmp_file->path})) { in JoinCallChains()
|
D | environment.cpp | 627 return Workload::RunCmd({"run-as", package_name, "echo", ">/dev/null", "2>/dev/null"}, false); in IsAppDebuggable() 714 std::unique_ptr<Workload> workload = Workload::CreateWorkload(ChildProcFn); in RunCmdInApp() 756 Workload::RunCmd({"run-as", package_name_, "rm", "-rf", "simpleperf"}); in ~RunAs() 789 if (!Workload::RunCmd({"run-as", package_name_, "cp", simpleperf_path_, "simpleperf"})) { in Prepare()
|
D | cmd_api.cpp | 214 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
|
D | cmd_report_test.cpp | 509 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F() 532 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
|
D | cmd_stat.cpp | 411 std::unique_ptr<Workload> workload; in Run() 413 workload = Workload::CreateWorkload(workload_args); in Run()
|
D | cmd_debug_unwind.cpp | 298 if (!Workload::RunCmd({"mv", output_filename_, tmp_file->path})) { in JoinCallChains()
|