JP2: Call-site aware calling context profiling for the Java Virtual Machine

  • Authors:
  • Aibek Sarimbekov;Andreas Sewe;Walter Binder;Philippe Moret;Mira Mezini

  • Affiliations:
  • Faculty of Informatics, University of Lugano, Lugano, Switzerland;Software Technology Group, Technische Universität Darmstadt, Darmstadt, Germany;Faculty of Informatics, University of Lugano, Lugano, Switzerland;Faculty of Informatics, University of Lugano, Lugano, Switzerland;Software Technology Group, Technische Universität Darmstadt, Darmstadt, Germany

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

Quantified Score

Hi-index 0.00

Visualization

Abstract

Calling context profiling fulfills programmers' information needs to obtain a complete picture of a program's inter- and intra-procedural control flow, which are important for workload characterization, debugging, profiling, program comprehension, and reverse engineering. Many existing calling context profilers for Java, however, resort to sampling or other incomplete instrumentation techniques; thus, they collect incomplete profiles only. In this article we present JP2, a new calling context profiler for the Java Virtual Machine, which collects profiles that are not only complete but also call-site aware; that is, JP2 is able to distinguish between multiple call sites within a single method. JP2 supports selective profiling of the dynamic extent of chosen methods and supports profiling of native method invocations. Moreover, produced profiles contain execution statistics at the level of individual basic blocks of code, thereby preserving the intra-procedural control flow of the profiled applications. We rigorously evaluate the overhead incurred by JP2. This overhead is acceptable in tasks such as workload characterization. JP2 is freely available under an Open Source license.