Simple method optimization
First Claim
1. A method for monitoring, comprising:
- accessing a set of instructions;
determining, automatically, whether the set of instructions satisfies two criteria from the group of criteria;
i) the set of instructions is not synthetic, wherein a synthetic set of instructions are ones that are generated by a compiler;
ii) the set of instructions calls another set of instructions;
oriii) the set of instructions has an access level that satisfies a condition, wherein the access level is an access control level of a method that is provided by a programming language;
instrumenting the set of instructions if the set of instructions satisfies the two criteria; and
determining that the set of instructions should not be instrumented if the set of instructions does not satisfy the two criteria.
3 Assignments
0 Petitions
Accused Products
Abstract
Methods are classified as simple or complex. Complex methods are modified to add a tracer. Methods classified as simple are not modified to add a tracer. There are many different standards that can be used within the spirit of the present invention to classify methods as simple or complex. In one embodiment, a method is complex if it meets three criteria: (1) the method has an access level of public or package; (2) the method is non-synthetic and (3) the method calls at least one other method. Methods that do not satisfy all three criteria are classified as simple methods. In other embodiments, a method can be classified as complex if it satisfies two of the above criteria, or other similar criteria.
41 Citations
20 Claims
-
1. A method for monitoring, comprising:
-
accessing a set of instructions; determining, automatically, whether the set of instructions satisfies two criteria from the group of criteria; i) the set of instructions is not synthetic, wherein a synthetic set of instructions are ones that are generated by a compiler; ii) the set of instructions calls another set of instructions;
oriii) the set of instructions has an access level that satisfies a condition, wherein the access level is an access control level of a method that is provided by a programming language; instrumenting the set of instructions if the set of instructions satisfies the two criteria; and determining that the set of instructions should not be instrumented if the set of instructions does not satisfy the two criteria. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system comprising:
-
a processor configured to; access a set of instructions; determine whether the set of instructions satisfies two criteria from the group of criteria; i) the set of instructions is not synthetic, wherein a synthetic set of instructions are ones that are generated by a compiler; ii) the set of instructions calls another set of instructions;
oriii) the set of instructions has an access level that satisfies a condition, wherein the access level is an access control level of a method that is defined by a programming language; and instrument the set of instructions if the set of instructions satisfies the two criteria; and determine that the set of instructions should not be instrumented if the set of instructions fails to satisfy the two criteria. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A non-transitory processor readable storage device having processor readable code embodied thereon, the processor readable code for programming a processor to:
-
access a set of instructions; determine whether the set of instructions satisfies two or more criteria from the group of criteria; i) the set of instructions is not synthetic, a synthetic set of instructions is one that is a compiler generated; ii) the set of instructions calls another set of instructions;
oriii) the set of instructions has an access level that satisfies a condition, wherein the access level is an access control level of a method that is provided by a programming language; and instrument the set of instructions only if the set of instructions satisfies the two or more criteria. - View Dependent Claims (17, 18, 19, 20)
-
Specification