×

Method and system for maintaining thread-relative metrics for trace data adjusted for thread switches

  • US 6,539,339 B1
  • Filed: 09/09/1999
  • Issued: 03/25/2003
  • Est. Priority Date: 12/12/1997
  • Status: Expired due to Term
First Claim
Patent Images

1. A method for processing for events detected while profiling all instrumented program executed by a virtual machine in a data processing system, the method comprising the computer-implemented stops of:

  • in response to an occurrence of current event, receiving a request for a number of bytecodes executed by a thread running in the virtual machine since a preceding event;

    computing the number of bytecodes executed by the thread running in the virtual machine since the preceding event; and

    returning, in response to the request, the number of bytecodes executed by the thread running in the virtual machine since the preceding event, wherein the step of computing the number of bytecodes executed by the thread running in the virtual machine since the preceding event further includes;

    retrieving a stored bytecode count for the thread;

    obtaining a current bytecode count for the thread;

    computing a difference between the current bytecode count and the stored bytecode count; and

    adding the computed difference to the number of bytecodes executed by the thread running in the virtual machine sine the preceding event.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×