You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stefan Vigerske edited this page Mar 3, 2020
·
1 revision
PFunc is fully integrated with the Performance Application Programming Interface (PAPI), thereby allowing users to profile their applications with ease. PAPI was chosen due to its wide availability and portability across many hardware platforms. Profiling is handled mainly through the taskmgr type. Users can specify the events (both PAPI presets and native) that they wish to monitor when initializing objects of the taskmgr type. Consider the sample code given below:
In this example, we utilize PFunc to measure L1 data cache behavior. We derive from perf_data to communicate the required measurements to PFunc. PFunc stores the requested event values in my_perf_data and these values can subsequently be used for performance tuning.