Spy: A flexible code profiling framework

  • Authors:
  • Alexandre Bergel;Felipe Bañados;Romain Robbes;David Röthlisberger

  • Affiliations:
  • Pleiad Lab, DCC, University of Chile Santiago, Chile;Pleiad Lab, DCC, University of Chile Santiago, Chile;Pleiad Lab, DCC, University of Chile Santiago, Chile;University of Bern, Switzerland

  • Venue:
  • Computer Languages, Systems and Structures
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

Code profiling is an essential activity to increase software quality. It is commonly employed in a wide variety of tasks, such as supporting program comprehension, determining execution bottlenecks, and assessing code coverage by unit tests. Spy is an innovative framework to easily build profilers and visualize profiling information. The profiling information is obtained by inserting dedicated code before or after method execution. The gathered profiling information is structured in line with the application structure in terms of packages, classes, and methods. Spy has been instantiated on four occasions so far. We created profilers dedicated to test coverage, time execution, type feedback, and profiling evolution across version. We also integrated Spy in the Pharo IDE. Spy has been implemented in the Pharo Smalltalk programming language and is available under the MIT license.