30 likes | 194 Views
P-REE. PMM. C-REE 1. C-REE 2. C-REE n. …. PMM. PMM. PMM. Steps in a perfmon Session. Create the perfmon context Program the PMU Start monitoring Run code to measure Stop monitoring Read results Destroy the perfmon context. PMM (Monitor). Application Sub-thread 1. Application
E N D
P-REE PMM C-REE 1 C-REE 2 C-REE n …... PMM PMM PMM
Steps in a perfmon Session • Create the perfmon context • Program the PMU • Start monitoring • Run code to measure • Stop monitoring • Read results • Destroy the perfmon context
PMM (Monitor) Application Sub-thread 1 Application main() Monitor main() Application Sub-thread 2 …... Application Sub-thread n Monitor Thread() -- Set Flags for System-wide or per-thread monitoring -- Read the counters periodically