summaryrefslogtreecommitdiff
path: root/simpleperf
AgeCommit message (Collapse)Author
2021-05-14Merge "simpleperf: add type hints in simpleperf_report_lib.py."Yabin Cui
2021-05-14Merge "simpleperf: add more device info in recording file."Yabin Cui
2021-05-14simpleperf: add type hints in simpleperf_report_lib.py.Yabin Cui
Bug: 185526771 Test: run scripts/test/test.py. Change-Id: Ic1c679fe609792e31f0d24f2e1a516e3fc57b3ee
2021-05-14Link libdexfile_support statically.Martin Stjernholm
It's a tiny library that is better off without the DSO overhead. Test: `m droid` without libdexfile_support available as a shared lib Test: Boot Bug: 143978909 Change-Id: Iba987a339be613872f12e1739069284fa208d813
2021-05-13simpleperf: add more device info in recording file.Yabin Cui
Add android_sdk_version and android_build_type in meta info. Bug: 186469540 Test: run simpleperf_unit_test Change-Id: Ifcab8c93e5565bd3df8cc4f0ef167e537c08b2c5
2021-05-13Merge "simpleperf: move kernel_start_addr into Binary msg."Yabin Cui
2021-05-13Merge "Update API of MapInfo from libunwindstack"David Srbecky
2021-05-13Merge "simpleperf: add runtest in simpleperf_script.zip."Yabin Cui
2021-05-13Update API of MapInfo from libunwindstackDavid Srbecky
Use accessors to for all the fields. Test: build Change-Id: I8d59fa04f66d90ff758e6ce052b1e9cbd47fc4ea
2021-05-12Merge "simpleperf: add type hint to simpleperf_utils.py."Yabin Cui
2021-05-12Merge changes If4c37940,I009c8befYabin Cui
* changes: simpleperf: add app_type in meta info. simpleperf: add --add-meta-info to record cmd.
2021-05-12simpleperf: add runtest in simpleperf_script.zip.Yabin Cui
runtest directory contains test data for release test. Bug: none Test: build simpleperf_script.zip. Change-Id: Ia82b9aba5aa7161ed95f1a2e1ea6078bae362ad1
2021-05-12simpleperf: add type hint to simpleperf_utils.py.Yabin Cui
Bug: 185526771 Test: run scripts/test/test.py. Change-Id: I64c9f0c34b04b4088b7151b29917f3a96db806ee
2021-05-11simpleperf: move kernel_start_addr into Binary msg.Yabin Cui
This is to prepare for merging etm_branch_list files having different kernel_start_addrs. Bug: 187773121 Test: run simpleperf_unit_test. Change-Id: I76c36a392d7d6b49c57871a5a74cc218b93b4eb4
2021-05-11simpleperf: add app_type in meta info.Yabin Cui
app_type shows whether the recorded app is debuggable or profileable. When recording via run-as, the app is thought of as debuggable. When recording via simpleperf_app_runner, the app is thought of as profileable. Bug: 186469540 Test: run simpleperf_unit_test Test: run CtsSimpleperfTestCases. Change-Id: If4c379401921b253bb52fcf0bdaab3115232f4be
2021-05-11simpleperf: add --add-meta-info to record cmd.Yabin Cui
It is used to pass extra metea info, to store in recording file. Bug: 186469540 Test: run simpleperf_unit_test Change-Id: I009c8bef9e2a12c05e15ea8e577abd8427450e8d
2021-05-11Merge "simpleperf: use string to store vaddr in report.html."Yabin Cui
2021-05-11Merge "simpleperf: use multithreading to speed up disassembly."Yabin Cui
2021-05-11simpleperf: use multithreading to speed up disassembly.Yabin Cui
Bug: 187540905 Test: run scripts/test/test.py. Change-Id: If77c0dada42d31148ea6dd9a35088067212c428e
2021-05-11simpleperf: use string to store vaddr in report.html.Yabin Cui
The file vaddrs in vmlinux may can't be represented precisely by double type in Javascript. So store vaddrs as hex strings in json data, and handle them using BigInt in report_html.js. Bug: 186566291 Test: run script/test/test.py TestReportHtml*. Test: run script/report_html.py manually. Change-Id: Ic710d1795bb2269c0e2889ed9e9ea362f0cc0aa4
2021-05-11Merge "simpleperf: add type hints for report_html.py."Yabin Cui
2021-05-10simpleperf: fix pprof_proto_generator.py.Yabin Cui
Also add test for the regression. Bug: 187765275 Test: run scripts/test/test.py TestPprof*. Change-Id: I7d0524a26ef1976c0e7b10cb62eabd27bbf5e349
2021-05-07simpleperf: add type hints for report_html.py.Yabin Cui
Bug: 185526771 Test: run scripts/test/test.py. Change-Id: I3af37d0943fa705531fff273177e183f8dece27c
2021-05-07simpleperf: create and use build_id_list in binary_cache.Yabin Cui
When looking for a binary in binary_cache, we use path <binary_cache_dir> / <path_on_device>. This is not suitable for the kernel vmlinux, which doesn't have a path on device. To support vmlinux, this CL does below changes: 1. In binary_cache_builder.py, create build_id_list file, which supports finding a binary via its build id. 2. Add BinaryFinder class as a wrapper for finding binaries in binary_cache. It uses both build_id_list and path on device. 3. Use BinaryFinder in report scripts. Also add several related tests. Bug: 186566291 Test: run scripts/test/test.py. Change-Id: I74fd7dacdc4b42431797b7c2e293179e32ccb94b
2021-05-07Merge "simpleperf: fix printing kernel address warning."Yabin Cui
2021-05-06Merge "simpleperf: improve error msg for output file."Yabin Cui
2021-05-05Merge "simpleperf: improve generating test files."Yabin Cui
2021-05-05simpleperf: fix printing kernel address warning.Yabin Cui
1. In cmd_record.cpp, don't read kernel addresses when kernel samples are not recorded. 2. In kallsyms.cpp, print kernel address warning only once. 3. In kallsyms.cpp, use property only when running as root. Bug: none Test: run simpleperf_unit_test Change-Id: I06de729ff3f26f7cd2115593182d6cb9cdc7f525
2021-05-05simpleperf: improve error msg for output file.Yabin Cui
When writing to a read-only file system, the error msg is improved as below: $ simpleperf record sleep 1 Can't create output file in directory .: Read-only file system Bug: 187126442 Test: run simpleperf_unit_test Change-Id: I5c61514aeba1bfc73e9bf95f625adf76e7056fa0
2021-05-05simpleperf: improve generating test files.Yabin Cui
To extend the use of generating test files in debug-unwind cmd: 1. Support multiple times in --sample-time option. 2. Keep build ids in test files. 3. Remove the requirement that input files should be recorded with --keep-failed-unwinding-debug-info. Bug: none Test: run simpleperf_unit_test. Change-Id: I4a9bb4d978733dd6d761e28d5d0de42cb572d57c
2021-05-03simpleperf: read etm info only for online cpus.Yabin Cui
Bug: none Test: run simpleperf_unit_test. Test: run simpleperf manually. Change-Id: Ibbd5048b0b703be950ebc27864460f096fc64f07
2021-04-22simpleperf: find tools in clang prebuilts.Yabin Cui
When running simpleperf in AOSP projects, search llvm tools from clang prebuilts. Because It usually has a newer version than tools in ndk. Bug: none Test: run test/test.py TestTools* and print tool paths. Change-Id: Icd5ba72bc82800aebb1d6f378f8088ed19b86ac0
2021-04-22simpleperf: Enable TRBE support.Tamas Zsoldos
With TRBE, each CPU has its own sink. Therefore, when TRBE is present, instead of choosing a single sink, we leave the sink configuration empty. The driver will use the appropriate sinks for us. Change-Id: Ibf4b1154b6f4dba29511c72764d6758798e4a841
2021-04-21Merge "Adjust to libdexfile API changes"David Srbecky
2021-04-16simpleperf: support proguard mapping file in scripts.Yabin Cui
Bug: 169454086 Test: run scripts/test/test.py. Change-Id: Ic5b348859e8a2955a4a407264e7cf01540edd749
2021-04-16Merge "simpleperf: use python3 interpreter by default."Yabin Cui
2021-04-15simpleperf: use python3 interpreter by default.Yabin Cui
Also format code by autopep8. Bug: 185526771 Test: None Change-Id: If45bfff425463b1f0c71baa0e7f8032502eb1824
2021-04-15simpleperf: update simpleperf prebuilts to build 7286280.Yabin Cui
Taken from branch aosp-simpleperf-release. Bug: 183648916 Test: run script/test/test.py. Change-Id: I1bdf2b41cf2400ae021cfdec71b8d3e4f26bf063
2021-04-15Adjust to libdexfile API changesDavid Srbecky
Test: simpleperf_unit_test --gtest_filter=*dex* Change-Id: I837c1e1669bd7f602da6d86051b2fb666044b1ac
2021-04-14Merge changes I9ce48ec4,I16844f82Yabin Cui
* changes: simpleperf: add proguard mapping file option to report interfaces. simpleperf: support proguard mapping file in callchain report.
2021-04-14simpleperf: add proguard mapping file option to report interfaces.Yabin Cui
Also use PreprocessOptions() in cmd_report_sample.cpp. Bug: 169454086 Test: run simpleperf_unit_test Change-Id: I9ce48ec418991205228311088a89f24f639a67d5
2021-04-14simpleperf: support proguard mapping file in callchain report.Yabin Cui
Also refactor LineReader to make it available on windows. Bug: 169454086 Test: run simpleperf_unit_test Change-Id: I16844f824b3e6bb52884510fe6e93cf4cf90d4e3
2021-04-14Merge "simpleperf: fix linux host test."Yabin Cui
2021-04-13simpleperf: fix linux host test.Yabin Cui
Remove check to fix test record_cmd.system_wide_fp_callchain_sampling on linux host. Bug: none Test: run simpleperf_unit_test Change-Id: I30737ff1c19cfca9b8afa0465a2bb1b3783b9365
2021-04-13Merge changes I69174120,I1ab2874d,Ia76baa17Yabin Cui
* changes: simpleperf: add test type in do_test.py. simpleperf: merge test_monitor.py into do_test.py. simpleperf: prepare for merging test_monitor.py.
2021-04-12simpleperf: add test type in do_test.py.Yabin Cui
Add test type to python tests to decide how to run them. Also add progress bar to show test progress. Bug: 182507493 Test: run test.py Change-Id: I69174120bf378d74408ea9f19daa8595dde2dab8
2021-04-12simpleperf: merge test_monitor.py into do_test.py.Yabin Cui
1. Use multiprocessing in do_test.py to run tests in child processes. 2. Add -d option to run test on multiple devices in parallel. 3. Add -r option to repeat testing. 4. Remove test_monitor.py. Bug: 182507493 Test: run test.py. Change-Id: I1ab2874d8a44bc9ad2bf1830864ddb8e467fbd8b
2021-04-12simpleperf: prepare for merging test_monitor.py.Yabin Cui
1. Refactor TestHelper class to remove global variable and add explicit init class method. 2. Merge TestLogger into TestHelper. 3. Move build_testdata() into do_test.py. 4. Move test filter into an explicit function. Bug: 182507493 Test: run test.py. Change-Id: Ia76baa17197f6134ec4d7868e764edb66d29b6bd
2021-04-09Rename libdexfile_external_static to libdexfile_static (reland 2).Martin Stjernholm
This relands https://r.android.com/1643426 after requisite fix in https://r.android.com/1671709. Test: m nothing Bug: 143978909 Change-Id: I18dda8b989544e64c45ffa274cd053354f89e4a7
2021-04-09Merge "Revert "Rename libdexfile_external_static to libdexfile_static (...""Ulyana Trafimovich