commit | 20cfc47bad40c15f2e336039a6dfc2070e5c116f | [log] [tgz] |
---|---|---|
author | wasimabbas-arm <wasim.abbas@arm.com> | Wed Jan 23 16:06:34 2019 +0000 |
committer | GitHub <noreply@github.com> | Wed Jan 23 16:06:34 2019 +0000 |
tree | 423bad2c9b8783be3c8ea00d0bf42c8085678c8f | |
parent | 929cb589b6e6a46ea9f9c9343a34885d05c9b2c2 [diff] |
Update README.md
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.
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.