Hardware performance sniffers for embedded systems profiling