3 ms·
> If he wants to get the cycle count of the instructions, you don't have to run it, you need the datasheet from the manufacturer (which may be difficult to sour
by jcranmer 8y ago
> If he wants to get the cycle count of the instructions, you don't have to run it, you need the datasheet from the manufacturer (which may be difficult to source admittedly).
A12 is an out-of-order superscalar core. Counting the exact cycle counts of a sequence of instructions for such architectures by hand is basically a fool's errand, especially if you start running into issues such as exhausting register ports or issue stations.
- TickleSteve 8y agofair point, the point I was trying to make is that its an overly simplisitic way of measuring performance.
- zeusk 8y agoI'm quite sure Apple has a tool for profiling iOS applications. ARM has PMU (Performance Measuring Unit) as part of the architecture, for exactly this sort of testing.
- saagarjha 8y agoInstruments probably has this available; I know they do for Intel processors. Edit: Just checked, and my A10 shows a small but standard set of PMCs, many of which show up here: https://opensource.apple.com/source/xnu/xnu-4903.221.2/osfmk/arm64/kpc.c https://opensource.apple.com/source/xnu/xnu-4903.221.2/osfmk...