Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dworkload.cpp27 std::unique_ptr<Workload> Workload::CreateWorkload(const std::vector<std::string>& args) { in CreateWorkload()
28 std::unique_ptr<Workload> workload(new Workload(args, std::function<void ()>())); in CreateWorkload()
35 std::unique_ptr<Workload> Workload::CreateWorkload(const std::function<void ()>& function) { in CreateWorkload()
36 std::unique_ptr<Workload> workload(new Workload(std::vector<std::string>(), function)); in CreateWorkload()
43 Workload::~Workload() { in ~Workload()
45 if (!Workload::WaitChildProcess(false, false)) { in ~Workload()
47 Workload::WaitChildProcess(true, true); in ~Workload()
58 bool Workload::CreateNewProcess() { in CreateNewProcess()
100 void Workload::ChildProcessFn(int start_signal_fd, int exec_child_fd) { in ChildProcessFn()
132 bool Workload::Start() { in Start()
[all …]
Dworkload.h28 class Workload {
37 static std::unique_ptr<Workload> CreateWorkload(const std::vector<std::string>& args);
38 static std::unique_ptr<Workload> CreateWorkload(const std::function<void ()>& function);
40 ~Workload();
51 explicit Workload(const std::vector<std::string>& args, in Workload() 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()
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.cpp59 std::vector<std::unique_ptr<Workload>>* workloads) { in CreateProcesses()
69 auto workload = Workload::CreateWorkload(function); in CreateProcesses()
77 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
85 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
Dcmd_record_test.cpp145 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
179 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
193 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
201 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
301 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
389 std::vector<std::unique_ptr<Workload>> workloads; in TEST()
Dtest_util.h27 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads);
Dcmd_stat.cpp345 std::unique_ptr<Workload> workload; in Run()
347 workload = Workload::CreateWorkload(workload_args); in Run()
Dcmd_record.cpp248 std::unique_ptr<Workload> workload; in Run()
250 workload = Workload::CreateWorkload(workload_args); in Run()
Dcmd_report_test.cpp476 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()