Searched refs:Workload (Results 1 – 12 of 12) sorted by relevance
/system/extras/simpleperf/ |
D | workload.cpp | 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() [all …]
|
D | workload.h | 30 class Workload { 40 static std::unique_ptr<Workload> CreateWorkload(const std::vector<std::string>& args); 41 static std::unique_ptr<Workload> CreateWorkload(const std::function<void()>& function); 44 ~Workload(); 58 explicit Workload(const std::vector<std::string>& args, const std::function<void()>& function); 73 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() 47 auto workload = Workload::CreateWorkload({"sleep", "10"}); in run_signaled_workload() 66 auto workload = Workload::CreateWorkload({"ls", "nonexistdir"}); in run_exit_nonzero_workload()
|
D | test_util.h | 35 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads); 164 Workload::RunCmd({"pm", "uninstall", package}); in ~AppHelper() 169 if (Workload::RunCmd({"pm", "install", "-t", "--abi", GetABI(), apk_path})) { in InstallApk() 177 app_start_proc_ = Workload::CreateWorkload(android::base::Split(start_cmd, " ")); in StartApp() 197 std::unique_ptr<Workload> app_start_proc_;
|
D | cmd_stat_test.cpp | 106 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads) { in CreateProcesses() 110 std::unique_ptr<Workload> workload; in CreateProcesses() 111 workload = Workload::CreateWorkload(RunWorkloadFunction); in CreateProcesses() 119 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 127 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 311 ASSERT_TRUE(Workload::RunCmd({"am", "start", app_name + "/.MainActivity"})); in TestStatingApps()
|
D | cmd_record_test.cpp | 251 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 276 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 285 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 293 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 386 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 473 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 518 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 607 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 632 std::vector<std::unique_ptr<Workload>> workloads; in TEST() 661 std::vector<std::unique_ptr<Workload>> workloads; in TEST() [all …]
|
D | cmd_api_test.cpp | 83 ASSERT_TRUE(Workload::RunCmd({"unzip", "-d", tmpdir.path, tmpfile.path})); in RecordApp()
|
D | environment.cpp | 534 return Workload::RunCmd({"run-as", package_name, "--user", std::to_string(user_id), "echo", in IsAppDebuggable() 627 std::unique_ptr<Workload> workload = Workload::CreateWorkload(ChildProcFn); in RunCmdInApp() 671 Workload::RunCmd({"run-as", package_name_, "--user", user_id_, "rm", "-rf", "simpleperf"}); in ~RunAs() 712 if (!Workload::RunCmd( in Prepare()
|
D | cmd_api.cpp | 206 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
|
D | cmd_record.cpp | 339 bool PrepareRecording(Workload* workload); 340 bool DoRecording(Workload* workload); 480 std::unique_ptr<Workload> workload; in Run() 482 workload = Workload::CreateWorkload(workload_args); in Run() 497 bool RecordCommand::PrepareRecording(Workload* workload) { in PrepareRecording() 663 bool RecordCommand::DoRecording(Workload* workload) { in DoRecording()
|
D | cmd_report_test.cpp | 546 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F() 567 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
|
D | cmd_stat.cpp | 499 std::unique_ptr<Workload> workload; in Run() 501 workload = Workload::CreateWorkload(workload_args); in Run()
|