This post originated from an RSS feed registered with Java Buzz
by Marc Logemann.
Original Post: Jamon - perf. measuring for coders
Feed Title: Marc's Java Blog
Feed URL: http://www.logemann.org/day/index_java.xml
Feed Description: Java related topics for all major areas. So you will see J2ME, J2SE and J2EE issues here.
I am using JAMon since its early beginnings and i never turned back to cruel System.currentTimeMillis() and the manual arithmetic afterwards. Instead i am using JAMon which can be simple like this:
import com.jamonapi.*;
public class MonitorTest {
public static void main(String[] args) throws Exception {
Monitor mon=null;
for (int i=1; i<=10; i++) {
mon = MonitorFactory.start("myFirstMonitor");
Thread.sleep(100+i);
mon.stop();
}
System.out.println(mon); // toString() method called
}
}
With the release of 1.0 a few months ago, the API was extended and some very useful things were added. The only thing i am missing is statistics persistence to some kind of datastore but i think this is allready on the list.
Check out JAMon yourself, its a very nice little helper when checking performance.
NOTE: Its no replacement for profilers, but some things can be done faster and easier with JAMon.