A method, apparatus, and computer instructions in a data processing system for monitoring the execution of instructions and accesses to memory locations. If an instruction is associated with a indicator, a counter associated with the instruction is incremented in response to detecting execution of the...http://www.google.de/patents/US7937691?utm_source=gb-gplus-sharePatent US7937691 - Method and apparatus for counting execution of specific instructions and accesses to specific data locations