Programming · 4 min read
JVM bytecode instrumentation with ASM: timing every method without touching the source
Build a tiny Java agent that rewrites classes at load time with ASM and records how long each method takes, and learn the pitfalls on the way.