Lines Matching refs:StatCmd

34 static std::unique_ptr<Command> StatCmd() {  in StatCmd()  function
39 ASSERT_TRUE(StatCmd()->Run({"sleep", "1"})); in TEST()
43 ASSERT_TRUE(StatCmd()->Run({"-e", "cpu-clock,task-clock", "sleep", "1"})); in TEST()
47 TEST_IN_ROOT(ASSERT_TRUE(StatCmd()->Run({"-a", "sleep", "1"}))); in TEST()
51 ASSERT_TRUE(StatCmd()->Run({"--verbose", "sleep", "1"})); in TEST()
55 TEST_IN_ROOT(ASSERT_TRUE(StatCmd()->Run({"-a", "-e", "sched:sched_switch", "sleep", "1"}))); in TEST()
75 ASSERT_TRUE(StatCmd()->Run({"-e", event_name, "sleep", "1"})); in TEST()
90 TEST_IN_ROOT(ASSERT_TRUE(StatCmd()->Run({"-a", "-e", event_string, "sleep", "1"}))); in TEST()
95 ASSERT_TRUE(StatCmd()->Run({"-e", "cpu-cycles:u,cpu-cycles:k", "sleep", "1"})); in TEST()
123 ASSERT_TRUE(StatCmd()->Run({"-p", pid_list, "sleep", "1"})); in TEST()
132 ASSERT_TRUE(StatCmd()->Run({"-t", tid_list, "sleep", "1"})); in TEST()
136 ASSERT_FALSE(StatCmd()->Run({})); in TEST()
137 ASSERT_FALSE(StatCmd()->Run({""})); in TEST()
142 ASSERT_TRUE(StatCmd()->Run({"--group", "cpu-clock,page-faults", "sleep", "1"})); in TEST()
143 ASSERT_TRUE(StatCmd()->Run({"--group", "cpu-cycles,instructions", "--group", in TEST()
151 ASSERT_TRUE(StatCmd()->Run( in TEST()
165 ASSERT_TRUE(StatCmd()->Run({"--duration", "1.2", "-p", std::to_string(getpid()), "--in-app"})); in TEST()
166 ASSERT_TRUE(StatCmd()->Run({"--duration", "1", "sleep", "2"})); in TEST()
171 ASSERT_TRUE(StatCmd()->Run( in TEST()
186 TEST_IN_ROOT(ASSERT_TRUE(StatCmd()->Run({"-a", "--interval", "100", "--duration", "0.3"}))); in TEST()
190 ASSERT_TRUE(StatCmd()->Run({"--interval", "500", "--interval-only-values", "sleep", "2"})); in TEST()
192 StatCmd()->Run({"-a", "--interval", "100", "--interval-only-values", "--duration", "0.3"}))); in TEST()
198 ASSERT_FALSE(StatCmd()->Run({"-e", e + ":" + m, "sleep", "0.1"})) in TEST()
210 ASSERT_TRUE(StatCmd()->Run({"sleep", "1000000"})); in TEST()
222 ASSERT_TRUE(StatCmd()->Run({"-t", std::to_string(tid), "--in-app"})); in TEST()
244 ASSERT_TRUE(StatCmd()->Run({"--csv", "--group", "task-clock,cpu-cycles", "sleep", "1"})); in TEST()
312 ASSERT_TRUE(StatCmd()->Run({"--app", app_name, "--duration", "3"})); in TestStatingApps()
331 TEST_IN_ROOT(StatCmd()->Run({"--use-devfreq-counters", "sleep", "0.1"})); in TEST()
338 ASSERT_TRUE(StatCmd()->Run({"--per-thread", "sleep", "0.1"})); in TEST()
339 TEST_IN_ROOT(StatCmd()->Run({"--per-thread", "-a", "--duration", "0.1"})); in TEST()
343 ASSERT_TRUE(StatCmd()->Run({"--per-core", "sleep", "0.1"})); in TEST()
344 TEST_IN_ROOT(StatCmd()->Run({"--per-core", "-a", "--duration", "0.1"})); in TEST()
349 StatCmd()->Run({"--per-thread", "--per-core", "--sort", "cpu,count", "sleep", "0.1"})); in TEST()