Binder, WalterHulaas, Jarle2007-07-162007-07-162007-07-16200610.1145/1173706.1173733https://infoscience.epfl.ch/handle/20.500.14299/9510Code instrumentation is finding more and more practical applications, but the required program transformations are often difficult to implement, due to the lack of dedicated, high-level tools. In this paper we present a novel instrumentation framework that supports the partial evaluation of compiled Java code transformation templates, with the goal of efficiently measuring chosen dynamic bytecode and control flow metrics. This framework, as well as the instrumentation code it generates, is implemented in pure Java and hence completely platform-independent. We show the benefits of our approach in several application areas, such as platform-independent resource management and profiling of software components.AlgorithmsLanguagesMeasurementJavaJVMbytecode instrumentationprogram transformationscomponent-based software engineeringpartial evaluationdynamic metricsresource managementprofilingaspect-oriented programmingFlexible and Efficient Measurement of Dynamic Bytecode Metricstext::conference output::conference proceedings::conference paper