Title :
Profiling k-Iteration Paths : A Generalization of the Ball-Larus Profiling Algorithm
Author :
Roy, Subhajit ; Srikant, Y.N.
Author_Institution :
Dept. of Comput. Sci. & Autom., Indian Inst. of Sci., Bangalore
Abstract :
The Ball-Larus path-profiling algorithm is an efficient technique to collect acyclic path frequencies of a program. However, longer paths - those extending across loop iterations - describe the runtime behaviour of programs better. We generalize the Ball-Larus profiling algorithm for profiling k-iteration paths - paths that can span up to to k iterations of a loop. We show that it is possible to number such k-iteration paths perfectly, thus allowing for an efficient profiling algorithm for such longer paths. We also describe a scheme for mixed-mode profiling: profiling different parts of a procedure with different path lengths. Experimental results show that k-iteration profiling is realistic.
Keywords :
optimising compilers; program control structures; reverse engineering; system monitoring; Ball-Larus path-profiling algorithm; acyclic program path frequency; k-iteration path profiling; mixed-mode profiling; profile-directed compiler optimization; program loop iteration; program understanding; runtime program behaviour; Approximation algorithms; Automation; Computer science; Frequency; Instruments; Optimizing compilers; Runtime;
Conference_Titel :
Code Generation and Optimization, 2009. CGO 2009. International Symposium on
Conference_Location :
Seattle, WA
Print_ISBN :
978-0-7695-3576-0
DOI :
10.1109/CGO.2009.11