A framework for reducing the cost of instrumented code

Authors:

Abstract
Instrumenting code to collect proling information can causesubstantial execution overhead. This overhead makes instrumentationdicult to perform at runtime, often preventingmany known oine feedback-directed optimizations frombeing used in online systems. This paper presents a generalframework for performing instrumentation sampling toreduce the overhead of previously expensive instrumentation.The framework is simple and eective, using codeduplicationand counter-based sampling to allow ...