commit | d6211ad70f2434245d23de7b3a63ec2d5126da3b | [log] [tgz] |
---|---|---|
author | Saulo Aldighieri Moraes <saulo @ gmx com> | Sat Apr 13 15:00:38 2019 -0300 |
committer | Saulo Aldighieri Moraes <saulo @ gmx com> | Sat Apr 13 15:00:38 2019 -0300 |
tree | d9fed306e63106d259943fb83a935cb783523831 | |
parent | 7afb17571f1e747ca34b0a7af4d6eb116bdaa807 [diff] |
Fix std::vector with const std::pair Signed-off-by: Saulo Aldighieri Moraes <saulo @ gmx com>
HWCPipe is an interface to the Arm Hardware Counters, designed to allow for easily interfacing with and reading the hardware counters built into Arm hardware.
The software is provided under an MIT license. Contributions to this project are accepted under the same license.
To use HWCPipe, build it as a shared library in your Android Project, to do this it must be integrated into your project with CMake.
In order for performance data to be displayed, profiling needs to be enabled on the device. Some devices may disable it by default.
Profiling can be enabled via adb:
adb shell setprop security.perf_harden 0
To enable a counter, create either a PMU or Mali counter and then call its start function.
Instrument instrument_ = PMUCounter(); instrument_.start();
To read a counter, first stop it and then call its measurements function to store results in the MeasurementsMap variable which can then be read from.
instrument_.stop(); MeasurementsMap measurements = instrument_.measurements();
The counters are separated into two categories: PMU and Mali counters, the available counters are:
For more information regarding these counters, see Mali Performance Counters.