Searched refs:Workload (Results 1 – 9 of 9) sorted by relevance
/system/extras/simpleperf/ |
D | workload.cpp | 27 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 …]
|
D | workload.h | 28 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);
|
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 | 59 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()
|
D | cmd_record_test.cpp | 145 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()
|
D | test_util.h | 27 void CreateProcesses(size_t count, std::vector<std::unique_ptr<Workload>>* workloads);
|
D | cmd_stat.cpp | 345 std::unique_ptr<Workload> workload; in Run() 347 workload = Workload::CreateWorkload(workload_args); in Run()
|
D | cmd_record.cpp | 248 std::unique_ptr<Workload> workload; in Run() 250 workload = Workload::CreateWorkload(workload_args); in Run()
|
D | cmd_report_test.cpp | 476 std::vector<std::unique_ptr<Workload>> workloads; in TEST_F()
|