Home
last modified time | relevance | path

Searched refs:Workload (Results 1 – 12 of 12) sorted by relevance

/system/extras/simpleperf/
Dworkload.cpp30 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 …]
Dworkload.h30 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);
Dworkload_test.cpp30 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()
Dtest_util.h35 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_;
Dcmd_stat_test.cpp106 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()
Dcmd_record_test.cpp251 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 …]
Dcmd_api_test.cpp83 ASSERT_TRUE(Workload::RunCmd({"unzip", "-d", tmpdir.path, tmpfile.path})); in RecordApp()
Denvironment.cpp534 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()
Dcmd_api.cpp206 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
Dcmd_record.cpp339 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()
Dcmd_report_test.cpp546 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
567 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
Dcmd_stat.cpp499 std::unique_ptr<Workload> workload; in Run()
501 workload = Workload::CreateWorkload(workload_args); in Run()