Verifying function performance based on predefined count ranges
AssigneeInternational Business Machines Corporation
InventorKirk J. Krauss
Life of this patent
Estimating the term…
Abstract
A computer-implemented method of finding portions of a computer program exhibiting irregular performance can include detecting an entry into a function of a computer program under test indicating a current execution of the function and, responsive to detecting an exit from the function, determining a count of a computing resource utilized by the function during the current execution of the function. The count of the computing resource can be compared with a predetermined count range to determine whether the function is nonconforming to the predetermined count range. Usage information for the computer program under test can be output to a display of an electronic device resource, the resource usage information indicating that the function does not conform to the predetermined count range.
Claims20
A computer-implemented method of finding portions of a computer program exhibiting irregular performance, the method comprising:
- detecting an entry into a function of a computer program under test indicating a current execution of the function during a present run of the computer program under test;
- responsive to detecting an exit from the function, determining a count of a computing resource utilized by the function during the current execution of the function;
- comparing the count of the computing resource with a predetermined count range to determine whether the function is nonconforming to the predetermined count range;
- and
- when the count of the computing resource is nonconforming to the predetermined count range, outputting to a display of an electronic device resource usage information for the computer program under test, the resource usage information indicating that the function does not conform to the predetermined count range.
A computer-implemented method of finding portions of a computer program exhibiting irregular performance, the method comprising:
- detecting an entry into a function of a computer program under test indicating a current execution of the function during a present run of the computer program under test;
- responsive to detecting an exit from the function, determining a count of a computing resource utilized by the function during the current execution of the function;
- comparing the count of the computing resource with a predetermined count range to determine whether the function is nonconforming to the predetermined count range, wherein the predetermined count range is determined according to at least one count value determined according to a prior execution of the function during a prior run of the computer program under test;
- and
- when the count of the computing resource is nonconforming to the predetermined count range, outputting to a display of an electronic device resource usage information for the computer program under test, the resource usage information indicating that the function does not conform to the predetermined count range.
A computer program product, comprising:
- a computer usable storage medium having stored therein computer usable program code for finding portions of a computer program exhibiting irregular performance, the computer usable program code, which when executed by a computer hardware system, causes the computer hardware system to perform:
- detecting an entry into a function of a computer program under test indicating a current execution of the function during a present run of the computer program under test;
- responsive to detecting an exit from the function, determining a count of a computing resource utilized by the function during the current execution of the function;
- comparing the count of the computing resource with a predetermined count range to determine whether the function is nonconforming to the predetermined count range;
- and
- outputting, upon the count of the computing resource being nonconforming to the predetermined count range, resource usage information for the computer program under test indicating that the function does not conform to the predetermined count range.
Dependencies are inferred from the claim text.