Patents
US 7,926,040 B2#12148528 Most CitedActiveUnited States (USPTO)Utility

Method and system for timing code execution in a korn shell script

9Forward Citations (#12148528 Global)
0.6/yrCitation Velocity (#13113228 Global)
1.63Citation PageRank (#20107097 Global)
18Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

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)

  1. 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 ↗

References Cited — Backward Prior Art (18)

PatentTitleYearCitations
US 5,799,297 ATask workflow management system and method including an external program execution feature1998224
US 5,805,884 AProcess for monitoring execution of a command script199852
US 6,457,142 B1Method and apparatus for target application program supervision2002172
US 2002199173 A1System, method and article of manufacture for a debugger capable of operating across multiple threads and lock domains—156
US 2003131343 A1Framework for system monitoring—31
US 6,609,216 B1Method for measuring performance of code sequences in a production system200346
US 6,708,324 B1Extensible automated testing software200494
US 2004103394 A1Mechanism for testing execution of applets with plug-ins and applications—50
US 2004168157 A1System and method for creating a process invocation tree—21
US 2004205455 A1System and method for managing workflow using a plurality of scripts—14
US 6,904,424 B1Method and a system for managing shell script file development and execution200537
US 6,959,262 B2Diagnostic monitor for use with an operating system and methods therefor200536
US 2007028217 A1Testing software using verification data defined independently of the testing code—55
US 2007061784 A1Automatic code tuning—21
US 7,310,777 B2User interface for viewing performance information about transactions200760
US 2008127105 A1Method and System for Command-Line Warnings—3
US 7,519,958 B2Extensible and unobtrusive script performance monitoring and measurement20098
US 7,774,784 B2Determining an actual amount of time a processor consumes in executing a portion of code20109

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.