Intrusive vs. Java Dynamic Proxy Techniques for Measuring Method Performance
This article explains how to measure the execution time of Java methods by first using an intrusive approach that embeds timing code directly in each method, then introduces a cleaner solution based on Java's dynamic proxy mechanism to separate performance monitoring from business logic.
