summaryrefslogtreecommitdiff
path: root/simpleperf/include
AgeCommit message (Collapse)Author
2022-02-07profcollectd: add interface to wait for ETM after boot.Yabin Cui
ETM device may not be ready when profcollectd is started. So this CL adds interface to wait for ETM after boot: 1. In simpleperf_profcollect, split has_support() into has_driver_support() and has_device_support(). 2. In ProfcollectdBinderService and Scheduler, add interface to register ProviderStatusCallback, which is called when the trace provider is ready. 3. In profcollectd, register ProviderStatusCallback after boot. Then record boot profile and schedule periodic recording in the callback. Bug: 213519191 Test: on oriole EVT and DVT devices, profcollectd can record boot Test: profile and periodic profiles. Test: run simpleperf_unit_test. Change-Id: I87befcd372ad85a0131116a7925f303b4990ec47
2021-11-17profcollectd: only produce profiles for /system/{bin,lib,lib64}/*Yi Kong
For now, all the PGO enabled libraries are in these directories. Filtering the profiles saves us some processing time. We can add more paths if needed in the future. Test: manual Bug: 79161490 Change-Id: Ibb992f63990deacd8dbfa8c88e6e6098b9e22ccf
2021-03-30simpleperf_profcollect: add option for recording scope.Yabin Cui
And record etm for both kernel and userspace by default. Bug: 183135316 Test: run profcollectd Change-Id: I91ea3a20efbcdf30df33d9280a8f15d25fa40f84
2021-03-02simpleperf: Rust bindings for profcollectYi Kong
Test: build Change-Id: I29dbc69cefa86bbaa4c5d411cf751949501af41b
2020-10-23simpleperf: enable .clang-formatThiƩbaud Weksteen
Use the 2-space configuration by default and disable any formatting for the demo/ subdirectory. The following command was used to generate this change: $ find . \( -name \*.cpp -o -name \*.h \) -exec clang-format \ --style=file -i {} \; Test: mm Change-Id: I89ec1f18f6e352f40cfa1a770087f3b586b1d7cb
2020-06-17simpleperf: Modify profcollect API to allow float seconds durationYi Kong
Bug: 79161490 Change-Id: Ica8e48d9d5293fc0d079e4efc5e3bc854686b055
2020-06-03simpleperf: expose ETM collection methods for profcollectdYi Kong
Test: build Bug: 79161490 Change-Id: I947cb0c08a9be2dacbe00f4985c35552855c6fdc
2017-06-06simpleperf: create libsimpleperf_record library.Yabin Cui
Add interface to control perf counters. Bug: http://b/35725972 Test: run simpleperf_record_test. Change-Id: I2a9979f807253c60a9db6304454934034161c854