A.8.49 CADI::CADIGetCycleCount()

This method gets the current cycle count.

virtual CADIReturn_t CADI::CADIGetCycleCount(uint64_t &cycleCount, 
                                             bool systemCycles) = 0;
is the returned cycle count. This must be pre-initialized by the caller and assigned by the callee.
if true, the method returns the system cycle count. If false, the method returns return the target specific cycle count.


Not all targets support cycleCount or systemCycles. If not supported, the target returns either:
  • An approximation to the cycle count such as, for example, the instruction count.
  • The error value CADI_STATUS_CmdNotSupported.
Non-ConfidentialPDF file icon PDF versionARM 100963_0200_00_en
Copyright © 2014–2017 ARM Limited or its affiliates. All rights reserved.