The present invention relates to a technique for measuring the number of events having occurred in a processor or a computer system, including various components such as a processor and a memory controller, in order to measure performance of the processor or the computer system, or tune the performance of the same.