摘要 |
The present invention is a method and apparatus for measuring the performance of a subroutine in a software application executing upon a computer system. When characterized as a method, a monitoring application operating according to the present invention first intercepts a call to a subroutine. The monitoring application then examines a system clock. If the clock is in a particular configuration, the monitoring application collects a first set of performance data. Next, the monitoring application passes control to the subroutine. When the subroutine completes, control is returned to the monitoring application. The monitoring application then collects a second set of performance data. The first and second sets of data are then compared to determine the performance characteristics of the subroutine. If the clock in not in the particular configuration, the monitoring application passes control to the subroutine in such a way that processing continues as it would if the monitoring program had never been called.
|