diff options
author | Yabin Cui <yabinc@google.com> | 2022-01-21 17:58:36 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-01-21 17:58:36 +0000 |
commit | 2cc193fe311984a02c2f6216c92c9186b33e528a (patch) | |
tree | 1162a8bb54805739e026f6d6bb720e4756c69c2c | |
parent | 32278d1edfd41405bfcd8156912f9b30ddd61020 (diff) | |
parent | 2dc50d38961a1ca952dfa3e9e83c8a2ef54a5f5f (diff) | |
download | extras-2cc193fe311984a02c2f6216c92c9186b33e528a.tar.gz |
Merge "simpleperf: update test for --trace-offcpu."
-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." |