diff options
author | Yabin Cui <yabinc@google.com> | 2022-01-20 16:41:54 -0800 |
---|---|---|
committer | Yabin Cui <yabinc@google.com> | 2022-01-20 16:41:54 -0800 |
commit | 2dc50d38961a1ca952dfa3e9e83c8a2ef54a5f5f (patch) | |
tree | 1162a8bb54805739e026f6d6bb720e4756c69c2c | |
parent | 32278d1edfd41405bfcd8156912f9b30ddd61020 (diff) | |
download | extras-2dc50d38961a1ca952dfa3e9e83c8a2ef54a5f5f.tar.gz |
simpleperf: update test for --trace-offcpu.
Now --trace-offcpu only works with cpu-clock event.
Bug: none
Test: run test.py
Change-Id: I374067e658350017c2a507d9ea5006860ac9b45c
-rw-r--r-- | simpleperf/scripts/test/cpp_app_test.py | 2 | ||||
-rw-r--r-- | simpleperf/scripts/test/java_app_test.py | 2 | ||||
-rw-r--r-- | simpleperf/scripts/test/kotlin_app_test.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/simpleperf/scripts/test/cpp_app_test.py b/simpleperf/scripts/test/cpp_app_test.py index f57868ca..86667d39 100644 --- a/simpleperf/scripts/test/cpp_app_test.py +++ b/simpleperf/scripts/test/cpp_app_test.py @@ -93,7 +93,7 @@ class TestExampleCppTraceOffCpu(TestExampleBase): cls.prepare("SimpleperfExampleCpp", "simpleperf.example.cpp", ".SleepActivity") def test_smoke(self): - self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-cycles:u --trace-offcpu") + self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-clock:u --trace-offcpu") self.run_cmd(["report.py", "-g", "--comms", "SleepThread", "-o", "report.txt"]) self.check_strings_in_file("report.txt", [ "SleepThread(void*)", diff --git a/simpleperf/scripts/test/java_app_test.py b/simpleperf/scripts/test/java_app_test.py index e334036a..03e7bafb 100644 --- a/simpleperf/scripts/test/java_app_test.py +++ b/simpleperf/scripts/test/java_app_test.py @@ -189,7 +189,7 @@ class TestExamplePureJavaTraceOffCpu(TestExampleBase): ".SleepActivity") def test_smoke(self): - self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-cycles:u --trace-offcpu") + self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-clock:u --trace-offcpu") self.run_cmd(["report.py", "-g", "-o", "report.txt"]) self.check_strings_in_file("report.txt", [ "com.example.simpleperf.simpleperfexamplepurejava.SleepActivity$1.run", diff --git a/simpleperf/scripts/test/kotlin_app_test.py b/simpleperf/scripts/test/kotlin_app_test.py index cddfd82d..7b18e058 100644 --- a/simpleperf/scripts/test/kotlin_app_test.py +++ b/simpleperf/scripts/test/kotlin_app_test.py @@ -105,7 +105,7 @@ class TestExampleOfKotlinTraceOffCpu(TestExampleBase): ".SleepActivity") def test_smoke(self): - self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-cycles:u --trace-offcpu") + self.run_app_profiler(record_arg="-g -f 1000 --duration 10 -e cpu-clock:u --trace-offcpu") self.run_cmd(["report.py", "-g", "-o", "report.txt"]) function_prefix = "com.example.simpleperf.simpleperfexampleofkotlin." + \ "SleepActivity$createRunSleepThread$1." |