Method and system for timing code execution in a korn shell script
AssigneeInternational Business Machines Corporation
InventorsMatthew Edward Aubertine, Rajat Tiwary
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorsMatthew Edward Aubertine, Rajat Tiwary
Estimating the term…
A method, system, and computer program product for timing the execution of code to facilitate the debugging of a Korn shell script. A user specifies the starting point and stopping point of a block of code by placing a time-code function at the beginning and end of the block of code. Furthermore, the user specifies a threshold value within the time-code function that corresponds to a maximum amount of time allotted for execution. The user defines a label variable to identify the output. When the block of code is executed, the time-code function calculates the time of execution and outputs the results. If the code contains an error that causes the execution time to exceed the threshold value, the time-code function halts the execution of the block of code and an error message is displayed. The error message then assists the user in debugging the block of code.
In a computer system having an operating system (OS) and associated Korn Shell (KSH), a method comprising:
A data processing system comprising:
A computer program product comprising:
Dependencies are inferred from the claim text.