×

System and Methods for Tracking Processing Unit Usage

  • US 20100179979A1
  • Filed: 10/30/2009
  • Published: 07/15/2010
  • Est. Priority Date: 04/14/2004
  • Status: Active Grant
First Claim
Patent Images

1. A method for monitoring system processor resources utilized by a software agent operating in a computer system, wherein said agent comprises an executable sequence of instructions, comprising:

  • identifying said agent, wherein said identifying is performed by a CPU resource tracking process determining that said agent is running;

    associating, by said CPU resource tracking process responsive to said identifying of said agent, an agent identifier with said agent, wherein said agent is one of a plurality of software agents operating in said computer system, and wherein said agent identifier uniquely identifies said agent within said plurality of software agents operating in said computer system;

    initiating, responsive to said identifying of said agent, an agent lifetime timer for measuring an operating interval of said agent during which said agent is running in said computer system;

    determining said operating interval using said agent lifetime timer by identifying a start time at which said CPU resource tracking process determined that said agent is running and a completion time at which said CPU resource tracking process determines that said agent has expired, and computing said operating interval as the difference between said starting time and said completion time;

    calculating an amount of said system processor resources utilized by said agent during said operating interval at least in part by detecting a plurality of threads created by said agent during said operating interval, wherein said calculating said amount of said system processor resources utilized by said agent during said operational interval further includes calculating CPU usage for each of said plurality of threads and adding said calculated CPU usage for all of said plurality of threads together to determine at least a portion of said amount of system processor resources utilized by said agent during said operating interval, wherein said calculating said CPU usage for each of said plurality of threads is performed responsive to each respective one of said plurality of threads expiring, and wherein said adding said calculated CPU usage for all of said plurality of threads together is performed by adding said calculated CPU utilization for each respective one of said plurality of threads responsive to each respective one of said plurality of threads expiring, wherein each of said plurality of threads is a path of execution such that multiple of said plurality of threads can be executed simultaneously; and

    storing said operating interval, said amount of system processor resources utilized by said agent during said operating interval and said agent identifier in a computer-readable memory.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×