Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dworkload.cpp28 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 …]
Dworkload.h28 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);
Dworkload_test.cpp30 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()
Dcmd_stat_test.cpp88 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()
Dcmd_record_test.cpp284 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 …]
Dtest_util.h31 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads);
Dcmd_record.cpp267 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()
Denvironment.cpp627 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()
Dcmd_api.cpp214 return Workload::RunCmd({"rm", "-rf", SIMPLEPERF_DATA_DIR}); in RemoveRecordingData()
Dcmd_report_test.cpp509 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
532 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
Dcmd_stat.cpp411 std::unique_ptr<Workload> workload; in Run()
413 workload = Workload::CreateWorkload(workload_args); in Run()
Dcmd_debug_unwind.cpp298 if (!Workload::RunCmd({"mv", output_filename_, tmp_file->path})) { in JoinCallChains()