Patents
US 8,214,819 B2#7055191 Most CitedExpiredUnited States (USPTO)Utility

Determining call counts in a program

14Forward Citations (#7055191 Global)
1.0/yrCitation Velocity (#6485897 Global)
2.12Citation PageRank (#13286545 Global)
17Prior Art Cited
2Claims (1 Indep. · 1 Dep.)
0Drawings / Sheets

Abstract

Function calls for a program are sampled to determine call counts in the program. The call counts are determined based on sampled function calls collected during sampling intervals.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 14.

Claims (2 — 1 Independent, 1 Dependent)

  1. Claim 1Independent Claim

    A method of determining call counts in a program without adding additional code into the program, the method comprising: determining a sampling interval for a function of a plurality of functions called in the program; programming a branch counter to count a number of executed function calls for the function in the program and to generate an interrupt upon reaching the sampling interval; sampling function calls from the function calls only for the function in response to the interrupt; and determining the call counts for the function based on the sampled function calls.

  2. Claim 2Depends on #1

    The method of claim 1 , wherein determining the call counts based on the sampled function calls further comprises: determining the call counts based on function calls sampled during a plurality of sampling intervals; and randomly selecting each of the plurality of sampling intervals.

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

References Cited — Backward Prior Art (17)

PatentTitleYearCitations
US 5,740,443 ACall-site specific selective automatic inlining199890
US 5,768,500 AInterrupt-based hardware support for profiling memory system performance1998306
US 5,950,003 AProfile instrumentation method and profile data collection method1999176
US 6,026,234 AMethod and apparatus for profiling indirect procedure calls in a computer program200069
US 6,029,004 AMethod and apparatus for modular reordering of portions of a computer program based on profile data200053
US 6,049,666 AMethod and apparatus for accurate profiling of computer programs2000102
US 6,126,329 AMethod and apparatus for accurate profiling of computer programs200075
US 6,175,956 B1Method and computer program product for implementing method calls in a computer system200143
US 6,282,707 B1Program transformation method and program transformation system200130
US 6,334,210 B1Language processing system and language processing method enabling reduction of memory region and overhead in profile information collection of computer200122
US 6,360,360 B1Object-oriented compiler mechanism for automatically selecting among multiple implementations of objects200243
US 2002138788 A1Computer software run-time analysis systems and methods—59
US 2003041316 A1Dynamic CPU usage profiling and function call tracing—28
US 2003117971 A1System, method, and article of manufacture for profiling an executable hardware model using calls to profiling functions—44
US 6,934,935 B1Method and apparatus for accurate profiling of computer programs2005114
US 2005283765 A1Software performance analysis using data mining—50

Non-Patent Literature (5)

  • "A comparative Study of Static and Profile-Based Heuristics for Inlining" by Matthew Arnold, Stephen Fink, Vivek Sarkar, Peter F. Sweeney 2000.
  • "Monster User Guide" Architecture and Performance Group, Apple Computer, Inc., Oct. 2002.
  • "Sampler" Development Tools Help Menu, Apple Computer, Inc., Dec. 2002.
  • "Shikari 2.5 User Guide" Architecutre and Performance Group, Apple Computer, Inc., Oct. 2002.
  • Graham, S. L. et al., "GPROF: A Call Graph Execution Profiler", University of California, Berkeley. 1982.