Profiling an executable
First Claim
Patent Images
1. A computerized method for profiling an executable program comprising:
- determining, by a processing circuit, one or more references to a portion of code in the executable program;
generating, by the processing circuit, a plurality of versions of the portion of code, each generated version having a different number of instrumentation instructions inserted into the portion of the code;
inserting, by the processing circuit, the generated versions of the portion of code into the executable program;
generating, by the processing circuit, a control function that conditionally executes the generated versions of the portion of the code;
inserting, by the processing circuit, the control function into the executable program; and
replacing, by the processing circuit, the one or more references to the portion of code with one or more references to the control function.
2 Assignments
0 Petitions
Accused Products
Abstract
Systems and methods for profiling an executable include generating differently instrumented versions of a portion of the program code for the executable. References to the portion of the program code may be replaced with references to a control function that conditionally executes the differently instrumented versions. Different profiling modes may be selected at runtime to control which version is executed. Profiling data may also be generated during execution of the program.
28 Citations
20 Claims
-
1. A computerized method for profiling an executable program comprising:
-
determining, by a processing circuit, one or more references to a portion of code in the executable program; generating, by the processing circuit, a plurality of versions of the portion of code, each generated version having a different number of instrumentation instructions inserted into the portion of the code; inserting, by the processing circuit, the generated versions of the portion of code into the executable program; generating, by the processing circuit, a control function that conditionally executes the generated versions of the portion of the code; inserting, by the processing circuit, the control function into the executable program; and replacing, by the processing circuit, the one or more references to the portion of code with one or more references to the control function. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A computerized system for profiling an executable program comprising a processing circuit operable to:
-
determine one or more references to a portion of code in the executable program; generate a plurality of versions of the portion of code, each generated version having a different number of instrumentation instructions inserted into the portion of the code; insert the generated versions of the portion of code into the executable program; generate a control function that conditionally executes the generated versions of the portion of the code; insert the control function into the executable program; and replace the one or more references to the portion of code with one or more references to the control function. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17, 18)
-
-
19. A computer-readable, storage medium having instructions therein, the instructions being executable by a processor to cause the processor to perform operations comprising:
-
determining one or more references to a portion of code in the executable program; generating a plurality of versions of the portion of code, each generated version having a different number of instrumentation instructions inserted into the portion of the code; inserting the generated versions of the portion of code into the executable program; generating a control function that conditionally executes the generated versions of the portion of the code; inserting the control function into the executable program; and replacing the one or more references to the portion of code with one or more references to the control function. - View Dependent Claims (20)
-
Specification