System and method for dynamic instrumentation
AssigneeHewlett-Packard Development Company, L.P.
InventorsVirendra Kumar Mehta, Sandya S. Mannarswamy
Life of this patent
Estimating the term…
Abstract
A system and method for dynamic instrumentation of an interpreted application. The method includes the operation of loading an interpreted code unit into a virtual machine. Testing instrumentation can then be inserted into the interpreted code unit using the virtual machine while the interpreted application continues executing. Another operation is executing the interpreted code unit with the testing instrumentation.
Claims25
A method for dynamic instrumentation of an interpreted application, comprising the steps of:
- loading an interpreted code unit into a virtual machine;
- inserting testing instrumentation into the interpreted code unit using the virtual machine while the interpreted application continues executing;
- executing the interpreted code unit with the testing instrumentation;
- and
- determining when the interpreted code unit has reached defined coverage level and de-instrumenting the interpreted code after the defined coverage level has been reached.
A method for dynamic instrumentation of an interpreted application, comprising the steps of:
- enabling a virtual machine to decompile an interpreted code unit from an executing interpreted application as the interpreted code unit is loaded by the virtual machine;
- inserting testing instrumentation into the interpreted code unit for testing purposes;
- recompiling the interpreted code unit with the testing instrumentation while the interpreted application continues executing;
- and
- determining when the interpreted code unit has reached defined coverage level and de-instrumenting the interpreted code after the defined coverage level has been reached.
A system for dynamic instrumentation of interpreted software code, comprising:
- an interpreted application having a plurality of code modules;
- a virtual machine that is configured to decompile and recompile a selected interpreted code module while the interpreted application executes;
- and
- instrumentation code that is inserted into the interpreted code unit by the virtual machine before the selected interpreted code module is recompiled by the virtual machine;
- wherein the virtual machine is further configured to determine when the interpreted code unit has reached defined coverage level and de-instrument the interpreted code after the defined coverage level has been reached.
An article of manufacture including a computer usable medium having computer readable program code embodied therein for dynamic instrumentation of interpreted software code, comprising computer readable program code capable of performing the operations of:
- enabling a virtual machine to decompile an interpreted code unit from an executing interpreted application as the interpreted code unit is loaded by the virtual machine;
- inserting testing instrumentation into the interpreted code unit for testing purposes;
- recompiling the interpreted code unit with the testing instrumentation;
- executing the interpreted code unit with the testing instrumentation while the interpreted application continues executing;
- and
- removing the testing instrumentation from the interpreted code unit upon receiving removal instructions.
A system for dynamic instrumentation of interpreted software code, comprising:
- an interpreted application means having a plurality of code modules and configured for executing in an operating environment;
- a virtual machine means for decompiling and recompiling a selected interpreted code module while the interpreted application executes;
- instrumentation code insertion means for inserting instrumented code into the interpreted code unit via the virtual machine before the selected interpreted code module is recompiled;
- and
- a signal handling means in the virtual machine means, the signal handler being configured for receiving commands for identifying an interpreted code unit to be decompiled by the virtual machine means;
- wherein the virtual machine is further configured to determine when the interpreted code unit has reached defined coverage level and de-instrument the interpreted code after the defined coverage level has been reached.
Dependencies are inferred from the claim text.