摘要 |
Profiling techniques and systems for analyzing a computer program at runtime produce profiles that attribute performance characteristics to specific sets of instructions invoked via generically-named native-code functions or virtual machine dispatch functions ("generic functions"). The computer program is instrumented at various points, such as upon entry into and/or exit from generic functions, to provide a parameter to the profiling system. Each parameter represents a particular specific set of instructions to be executed via the particular generic function. Receipt of a parameter triggers the addition of an attribution event record into an event log. The profiling system identifies within records within the event log for each unique combination of a parameter and a generic function address, and outputs a profile such as a call graph, which attributes performance characteristics (such as execution time or frequency) to the specific sets of instructions invoked via the generic functions.
|