Using profiler-based zero-code instrumentation