Efficient instrumentation for code coverage testing
- 1 July 2002
- proceedings article
- Published by Association for Computing Machinery (ACM)
- Vol. 27 (4) , 86-96
- https://doi.org/10.1145/566172.566186
Abstract
Evaluation of Code Coverage is the problem of identifying the parts of a program that did not execute in one or more runs of a program. The traditional approach for code coverage tools is to use static code instrumentation. In this paper we present a new approach to dynamically insert and remove instrumentation code to reduce the runtime overhead of code coverage. We also explore the use of dominator tree information to reduce the number of instrumentation points needed. Our experiments show that our approach reduces runtime overhead by 38-90% compared with purecov, a commercial code coverage tool. Our tool is fully automated and available for download from the Internet.Keywords
This publication has 5 references indexed in Scilit:
- An API for Runtime Code PatchingThe International Journal of High Performance Computing Applications, 2000
- Residual test coverage monitoringPublished by Association for Computing Machinery (ACM) ,1999
- Whole program pathsPublished by Association for Computing Machinery (ACM) ,1999
- Dominators, super blocks, and program coveragePublished by Association for Computing Machinery (ACM) ,1994
- Optimal Insertion of Software Probes in Well-Delimited ProgramsIEEE Transactions on Software Engineering, 1982