%0 Conference Paper %B International Conference on Computational Science (ICCS 2002) %D 2002 %T A Comparison of Counting and Sampling Modes of Using Performance Monitoring Hardware %A Shirley Moore %K papi %X Performance monitoring hardware is available on most modern microprocessors in the form of hardware counters and other registers that record data about processor events. This hardware may be used in counting mode, in which aggregate events counts are accumulated, and/or in sampling mode, in which time-based or event-based sampling is used to collect profiling data. This paper discusses uses of these two modes and considers the issues of efficiency and accuracy raised by each. Implications for the PAPI cross-platform hardware counter interface are also discussed. %B International Conference on Computational Science (ICCS 2002) %I Springer %C Amsterdam, Netherlands %8 2002-04 %G eng %R https://doi.org/10.1007/3-540-46080-2_95