Method and system for timing code execution in a korn shell script
Abstract
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.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 18 · Forward citations: 9.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
In a computer system having an operating system (OS) and associated Korn Shell (KSH), a method comprising: initiating the execution of a user-specified block of code within the KSH; concurrently executing a secondary process within the KSH that activates a clock timer, wherein said secondary process generates a time-code function utilizing a Korn shell script, which utilizes a plurality of time-code variables to measure the execution time of the user-specified block of code, and wherein the secondary process provides a threshold maximum execution time (threshold time) within which execution of
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (9 of 9 total)
References Cited — Backward Prior Art (18)
Non-Patent Literature (3)
- B Jensen, "Process Thread Control Procedure," TDB v38 n2 Feb. 1995 p. 237-238, www.delphion.com/tdbs/tdb?order=95A+60310.
- CA Harring, "Method for Counting Instructions Executed, Jan. 1979," TDB 01-79 p. 3257, www.delphion.com/tdbs/tdb?order=79A+00568.
- HW Flanagan, "Program Monitoring Technique, Jan. 1971," TDB 01-71 p. 2399-2401, www.delphion.com/tdbs/tdb?order=71C+0041 7.