1. A method for performance monitoring in a multiprocessing system, the method comprising: counting occurrences of a first hardware event in a first hardware event counter; counting occurrences of a second hardware event in a second hardware event counter; sampling the second hardware event counter after a specified number of occurrences of the first hardware event have been counted, and resetting the first and second hardware event counters.