Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Code Coverage with Progressive Detail Levels

Alexandre Perez|arXiv (Cornell University)|Jun 19, 2013
Software Testing and Debugging TechniquesComputer Science37 references5 citations
TL;DR

This paper proposes DCC (Dynamic Code Coverage), a novel fault localization technique that reduces instrumentation overhead by starting with coarse-grained code coverage and progressively refining it based on intermediate fault localization results. The approach achieves 27% average reduction in execution time and 63% smaller diagnostic reports compared to traditional spectrum-based fault localization, while maintaining diagnostic accuracy.

ABSTRACT

Nowadays, locating software components responsible for observed failures is one of the most expensive and error-prone tasks in the software development process. To improve the debugging process efficiency, some effort was already made to automatically assist the detection and location of software faults. This led to the creation of statistical debugging tools such as Tarantula, Zoltar and GZoltar. These tools use information gathered from code coverage data and the result of test executions to return a list of potential faulty locations. Although helpful, fault localization tools have some scaling problems because of the fine-grained coverage data they need to perform the fault localization analysis. Instrumentation overhead, which in some cases can be as high as 50% is the main cause for their inefficiency. This thesis proposes a new approach to this problem, avoiding as much as possible the high level of coverage detail, while still using the proven techniques these fault localization tools employ. This approach, named DCC, consists of using a coarser initial instrumentation, obtaining only coverage traces for large components. Then, the instrumentation detail of certain components is progressively increased, based on the intermediate results provided by the same techniques employed in current fault localization tools. To assess the validity of our proposed approach, an empirical evaluation was performed, injecting faults in four real-world software projects. The empirical evaluation demonstrates that the DCC approach reduces the execution overhead that exists in spectrum-based fault localization, and even presents a more concise potential fault ranking to the user. We have observed execution time reductions of 27% on average and diagnostic report size reductions of 63% on average.

Motivation & Objective

  • To reduce the high instrumentation overhead of spectrum-based fault localization (SFL) tools, which can reach up to 50%.
  • To maintain diagnostic accuracy comparable to SFL while minimizing the amount of instrumented code.
  • To improve debugging efficiency by generating more concise fault localization reports.
  • To explore dynamic, iterative instrumentation that adapts granularity based on intermediate results.
  • To validate the approach empirically using real-world software projects with injected faults.

Proposed method

  • DCC begins with coarse-grained instrumentation, collecting coverage data only for large components such as classes.
  • It applies standard statistical fault localization techniques (e.g., Tarantula, GZoltar) on the initial coarse data to identify high-probability faulty components.
  • Based on the intermediate results, DCC dynamically increases instrumentation detail for selected components, refining coverage to method or statement level.
  • The process is iterative: only components with high fault likelihood are instrumented in finer detail, reducing overall instrumentation surface.
  • The method uses existing SFL algorithms on progressively refined data, ensuring compatibility with established fault localization techniques.
  • Instrumentation granularity is adjusted per component based on intermediate diagnostic scores, enabling adaptive refinement.

Experimental results

Research questions

  • RQ1Can a fault localization approach that uses less detailed code coverage achieve comparable diagnostic accuracy to traditional SFL?
  • RQ2Can reducing instrumentation overhead through progressive detail levels improve debugging efficiency?
  • RQ3Does the use of coarse initial instrumentation followed by targeted refinement reduce execution time and diagnostic report size?
  • RQ4How does the dynamic adjustment of instrumentation granularity affect fault localization precision?
  • RQ5Can the DCC approach be effectively applied to real-world software systems with injected faults?

Key findings

  • DCC reduced average execution time by 27% compared to traditional SFL techniques.
  • The size of the diagnostic report was reduced by 63% on average, resulting in more concise fault rankings.
  • The approach maintained diagnostic accuracy equivalent to standard SFL, as validated through fault injection in four real-world software projects.
  • The dynamic, iterative refinement strategy allowed significant reduction in instrumented code without sacrificing fault localization precision.
  • The method effectively prunes low-probability components early, focusing instrumentation only where needed.
  • Empirical evaluation confirmed that DCC is viable and efficient in real-world software systems with injected single faults.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.