A framework for reducing the cost of instrumented code 论文
2001引用 365
Software Engineering ResearchSoftware Testing and Debugging TechniquesSoftware System Performance and Reliability
摘要
Instrumenting code to collect profiling information can cause substantial execution overhead. This overhead makes instrumentation difficult to perform at runtime, often preventing many known offline feedback-directed optimizations from being used in online systems. This paper presents a general framework for performing instrumentation sampling to reduce the overhead of previously expensive instrumentation. The framework is simple and effective, using code-duplication and counter-based sampling to allow switching between instrumented and non-instrumented code.