commit | 627d7e762c2a583d473695fb8577e4b117ce1602 | [log] [tgz] |
---|---|---|
author | wasimabbas-arm <wasim.abbas@arm.com> | Wed Feb 06 18:01:50 2019 +0000 |
committer | GitHub <noreply@github.com> | Wed Feb 06 18:01:50 2019 +0000 |
tree | ff77c16dbc14f5d1f387f07d08550ad9602e2d4e | |
parent | a4ee76cc44c9bdb6188c51acc9d21cb3d263498d [diff] | |
parent | 1caf6a8e9695ec172bd89ee364c396a3cffaea1d [diff] |
Merge pull request #3 from ARM-software/stalls Added L2 stalls interface
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.