Determining call counts in a program
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)
- 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.
- 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 ↗
Cited By — Indexed Forward Citations (14 of 14 total)
References Cited — Backward Prior Art (17)
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.