Using PAPI for Hardware Performance Monitoring on Linux Systems