Patent ID: 7475394

Claim:
An analysis method, comprising: identifying at least one construct in a program, wherein the program comprises native instructions for execution on a first processor having a first machine instruction set; assigning at least one native instruction of the program proximate the construct to be a trigger to invoke analysis code; generating a trigger map file that stores information specifying instrumented triggers in the program including the assigned trigger and further stores information indicative of the assigned native instruction of the assigned trigger; generating a trigger parameter file that stores information for providing parameter information for the specified triggers in the program and further stores information for determining analysis code to be invoked in response to the trigger; and interpreting by using the information stored in the trigger map file and the information stored in the trigger parameter file, via an interpreter, the program on a second processor having a second machine instruction set; during the interpretation and upon interpreting the assigned native instruction, identifying the assigned native instruction as the trigger; and invoking the analysis code by the interpreter at the identified construct in response to identifying the trigger wherein the analysis code includes machine instructions of the second machine instruction set for execution directly on the second processor, and wherein the analysis code and the interpreter communicate via a predefined interface.