Elapsed time indications for source code in development environment

US10649873B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-10649873-B2
Application numberUS-201916276353-A
CountryUS
Kind codeB2
Filing dateFeb 14, 2019
Priority dateDec 22, 2014
Publication dateMay 12, 2020
Grant dateMay 12, 2020

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Method and system are provided for providing elapsed time indications for source code in a development environment. The method includes: defining blocks of source code to be timed during source code execution; monitoring defined blocks of source code during execution to determine an elapsed time for the execution of the defined block of source code; recording the elapsed time for a defined block of source code; and providing an elapsed time indication for the defined block of source code.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer-implemented method, comprising: importing, by one or more processors, source code, into an integrated development environment; defining, by the one or more processors, blocks of the source code to be timed during source code execution in the integrated development environment, wherein the defining comprises setting breakpoints in the source code to differentiate the blocks, wherein each block comprises a line of the source code; executing, by the one or more processors, the source code, in the integrated development environment repetitively; monitoring defined blocks of the source code during the repetitive executing to determine, for each iteration, an elapsed time and an average elapsed time for the execution of each defined block of the defined blocks of the source code and a standard deviation for each defined block of the defined blocks; annotating a specific defined block of the source code of the defined blocks of source code with the average elapsed time for the specific defined block of the source code and the standard deviation for the specific defined block of the source code; and subsequent to the annotating, executing, the specific defined block of the source code in the integrated development environment, wherein the executing comprises: providing an elapsed time indication for the elapsed time for the specific defined block of the source code by displaying the elapsed time indication in a graphical user interface of the integrated development environment; and displaying, in the graphical interface, an alert, if the elapsed time exceeds the average elapsed time for the specific defined block of the source code by greater than the standard deviation for the specific defined block of the source code; determining, by the one or more processors, that the source code has been changed by a compiler; and resetting, by the one or more processors, the average elapsed time based on the changed source code, wherein the resetting comprises adjusting the average elapsed time for each of the defined blocks of the changed source code. 2. The computer-implemented method of claim 1 , wherein displaying the elapsed time further comprises representing the source code as an abstract representation. 3. The computer-implemented method of claim 2 , further comprising: recording the annotation as metadata for the specific defined block in the abstract representation. 4. The computer-implemented method of claim 1 , further comprising: determining, by the one or more processors, that the elapsed time for the specific defined block of source code differs by a threshold amount from an elapsed time of a previous iteration for the specific defined block of code; and providing, by the one or more processors, an alert based on the determining. 5. The computer-implemented method of claim 1 , wherein the monitoring comprises parsing the source code during the executing. 6. The computer-implemented method of claim 1 , further comprising resetting the method when the source code is run on a different hardware environment. 7. The computer-implemented method of claim 1 , wherein the executing is in a debugging mode, further comprising: allowing for user input in timing values of the blocks in the source code. 8. The computer-implemented method of claim 1 , wherein the source code changed by the compiler comprises the source code in a different computing language. 9. A system, comprising: one or more memories; and one or more processors communicatively coupled to the one or more memories, wherein the system performs a method comprising: importing, by the one or more processor, source code, into an integrated development environment; defining, by the one or more processors, blocks of the source code to be timed during source code execution in the integrated development environment, wherein the defining comprises setting breakpoints in the source code to differentiate the blocks, wherein each block comprises a line of the source code; executing, by the one or more processors, the source code, in the integrated development environment repetitively; monitoring defined blocks of the source code during the repetitive executing to determine, for each iteration, an elapsed time and an average elapsed time for the execution of each defined block of the defined blocks of the source code and a standard deviation for each defined block of the defined blocks; annotating a specific defined block of the source code of the defined blocks of source code with the average elapsed time for the specific defined block of the source code and the standard deviation for the specific defined block of the source code; and subsequent to the annotating, executing, the specific defined block of the source code in the integrated development environment, wherein the executing comprises: providing an elapsed time indication for the elapsed time for the specific defined block of the source code by displaying the elapsed time indication in a graphical user interface of the integrated development environment; and displaying, in the graphical interface, an alert, if the elapsed time exceeds the average elapsed time for the specific defined block of the source code by greater than the standard deviation for the specific defined block of the source code; determining, by the one or more processors, that the source code has been changed by a compiler; and resetting, by the one or more processors, the average elapsed time based on the changed source code, wherein the resetting comprises adjusting the average elapsed time for each of the defined blocks of the changed source code. 10. The system of claim 9 , wherein displaying the elapsed time further comprises representing the source code as an abstract representation. 11. The system of claim 9 , the method further comprising: recording the annotation as metadata for the specific defined block in the abstract representation. 12. The system of claim 9 , wherein the monitoring comprises parsing the source code during the executing. 13. The system of claim 9 , wherein the system further performs resetting the method when the source code is run on a different hardware environment. 14. A computer program product comprising: a computer readable storage medium having program instructions embodied therewith, the program instructions being executable by a processor to cause the processor to perform a method comprising: importing, by the one or more processor, source code, into an integrated development environment; defining, by the one or more processors, blocks of the source code to be timed during source code execution in the integrated development environment, wherein the defining comprises setting breakpoints in the source code to differentiate the blocks, wherein each block comprises a line of the source code; executing, by the one or more processors, the source code, in the integrated development environment repetitively; monitoring defined blocks of the source code during the repetitive executing to determine, for each iteration, an elapsed time and an average elapsed time for the execution of each defined block of the defined blocks of the source code and a standard deviation for each defined block of the defined blocks; annotating a specific defined block of the source code of the defined blocks of source code with the average elapsed time for the specific defined block of the source code and the standard deviation for the specific defined block of the source code; and subsequent to the annotating, executing, the specific defined block of the source code in the integrated develo

Assignees

Inventors

Classifications

  • by instrumenting at runtime · CPC title

  • Performance evaluation by tracing or monitoring · CPC title

  • Monitoring of software · CPC title

  • G06F11/34Primary

    Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation {; Recording or statistical evaluation of user activity, e.g. usability assessment} · CPC title

  • by assessing time · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US10649873B2 cover?
Method and system are provided for providing elapsed time indications for source code in a development environment. The method includes: defining blocks of source code to be timed during source code execution; monitoring defined blocks of source code during execution to determine an elapsed time for the execution of the defined block of source code; recording the elapsed time for a defined bloc…
Who is the assignee on this patent?
IBM
What technology area does this patent fall under?
Primary CPC classification G06F11/34. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue May 12 2020 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 4 related publications on this page (citations in our corpus or others sharing the same primary CPC).