Stratified sampling of execution traces: Execution phases serving as strata

  • Authors:
  • Heidar Pirzadeh;Sara Shanian;Abdelwahab Hamou-Lhadj;Luay Alawneh;Arya Shafiee

  • Affiliations:
  • Department of Electrical and Computer Engineering, Concordia University, Montreal, QC, Canada;Department of Computer Science, Laval University, Quebec City, QC, Canada;Department of Electrical and Computer Engineering, Concordia University, Montreal, QC, Canada;Department of Electrical and Computer Engineering, Concordia University, Montreal, QC, Canada;Department of Electrical and Computer Engineering, Concordia University, Montreal, QC, Canada

  • Venue:
  • Science of Computer Programming
  • Year:
  • 2013

Quantified Score

Hi-index 0.00

Visualization

Abstract

The understanding of the behavioral aspects of a software system is an important enabler for many reverse engineering activities. The behavior of software is typically represented in the form of execution traces. Traces, however, can be overwhelmingly large. To reduce their size, sampling techniques, especially the ones based on random sampling, have been extensively used. Random sampling, however, may result in samples that are not representative of the original trace. In this paper, we propose a trace sampling technique that not only reduces the size of a trace but also results in a sample that is representative of the original trace by ensuring that the desired characteristics of an execution are distributed similarly in both the sampled and the original trace. Hence, the insights gained from analyzing the sample trace could be extrapolated to the original execution trace. Our approach is based on stratified sampling instead of random sampling and uses the concept of execution phases as strata. We define an execution phase as a part of a trace that represents a specific task of the traced system. We also present an approach for the automatic detection of execution phases from a trace. Finally, we show the effectiveness of our sampling technique through two case studies.