Hi @CCB9999
There is no hardware support in the ARM core on S32K devices.
Performance Monitor unit is available in some MPC5xxx devices with e200z7 core, for example. It allows monitoring of the number of selected events like the number of branches, cache hits, and many others. This could be implemented on the software level. If an OS is used, you can monitor time spent on IDLE tasks, but there is no such option in bare-metal applications.
If you have questions regarding the MPC5xxx devices, ask in its community.
B.R.
VaneB