Efficient path profiling
T. Ball, James R. Larus · Proceedings of the ... annual International Symposium on Microarchitecture/Proceedings of the annual International Symposium on Microarchitecture · 2002
A path profile determines how many times each acyclic path in a routine executes. This type of profiling subsumes the more common basic block and edge profiling, which only approximate path frequencies. Path profiles have many potential uses in program performance tuning, profile-directed compilation, and software test coverage. This paper describes a new algorithm for path profiling. This simple, fast algorithm selects and places profile instrumentation to minimize run-time overhead. Instrumented programs run with overhead comparable to the best previous profiling techniques. On the SPEC95 benchmarks, path profiling overhead averaged 31%, as compared to 16% for efficient edge profiling. Path profiling also identifies longer paths than a previous technique, which predicted paths from edge profiles (average of 88, versus 34 instructions). Moreover, profiling shows that the SPEC95 train input datasets covered most of the paths executed in the ref datasets.
Cited by 188 works. doi:10.1109/micro.1996.566449
Authors
References
- Trace Scheduling: A Technique for Global Microcode Compaction
- EEL
- Bulldog: A Compiler for VLIW Architectures
- Predicting conditional branch directions from previous runs of a program
- Optimally profiling and tracing programs
- Branch prediction for free
- Efficiently counting program events with support for on-line queries
- Improving the accuracy of static branch prediction using branch correlation
- Trace Selection For Compiling Large C Application Programs To Microcode