Claims
- 1. A method for determining the latency of a predetermined level of memory within a hierarchical memory system used with a computer microprocessor having a latency counter, said method comprising the steps of:
said computer microprocessor determining if a selected load for measurement was issued from said predetermined level of memory; and incrementing said latency counter in response to said determination.
- 2. The method as described in claim 1, further comprising the step of said computer microprocessor storing a present value of said latency counter in a stored value in a rewind counter prior to issuing said load selected for measurement.
- 3. The method as described in claim 2, further comprising the step of said computer microprocessor incrementing said latency counter during execution of said load selected for measurement.
- 4. The method as described in claim 3, further comprising the step of said computer microprocessor resetting said present value of said latency counter with said stored value in said rewind counter in response to said computer microprocessor determining said load was not satisfied from said predetermined level of memory.
- 5. The method as described in claim 1, further comprising the step of said computer microprocessor incrementing a load counter in response to determining a selected load for measurement was issued from said predetermined level of memory.
- 6. The method as described in claim 1, further comprising the step of said computer microprocessor incrementing an accumulator during execution of said load selected for measurement.
- 7. The method as described in claim 6, wherein the step of incrementing said latency counter comprises the step of adding said accumulator to said latency counter.
- 8. The method as described in claim 1, wherein said latency counter is a performance monitor counter.
- 9. A system for determining the latency of a predetermined level of memory within a hierarchical memory system used with a computer microprocessor said system comprising:
means for said computer microprocessor determining if a selected load for measurement was issued from said predetermined level of memory; and a latency counter, said latency counter incrementing in response to said determination.
- 10. The system as described in claim 9, wherein said latency counter is a rewind counter, said rewind counter storing a present value and a rewind value.
- 11. The system as described by claim 10, wherein said present value of said rewind counter is stored as said rewind value prior to said microprocessor issuing said load selected for measurement.
- 12. The system as described in claim 11, wherein said present value of said rewind counter increments during execution of said load selected for measurement.
- 13. The system as described in claim 12, wherein said present value of said rewind counter is reset to the rewind value in response to said computer microprocessor determining said load was not satisfied from said predetermined level of memory.
- 14. The system as described in claim 9, further comprising an accumulator, said accumulator being incremented by said computer microprocessor during execution of said load selected for measurement.
- 15. The system as described in claim 14, wherein said accumulator is added to said latency counter in response to determining said load selected for measurement was issued from said predetermined level of memory.
- 16. The system as described in claim 9, wherein said latency counter is a performance monitor counter.
Parent Case Info
[0001] The present invention is related to the subject matter of the following commonly assigned, copending U.S. patent application Ser. No. 09/______ (Attorney Docket No. AUS920020225US1) entitled “SPECULATIVE COUNTING OF PERFORMANCE EVENTS WITH REWIND COUNTER” and filed ______, 2002. The content of the above-referenced applications is incorporated herein by reference.