speed4j

Speed4j is a basic performance analysis library for Java which allows you to insert stopwatches into your codebase and turn them on or off as you need.