[slf4j-user] Profiler

muleman croffler at earthlink.net
Thu May 21 18:18:34 CEST 2009


I am testing the Profiler from SLF4J

Below is the code and the execution results. The numbers just don't seem to
add up.


public class BasicProfilerDemo
{
	public static void main(String[] args)
	{
		Profiler profiler = new Profiler("BASIC");

		profiler.start("A");
		System.out.println("1111111111111");

		profiler.start("B");
		System.out.println("1111111111111");

		profiler.start("OTHER");
		System.out.println("1111111111111");

		profiler.stop().print();
	}
}

1111111111111
1111111111111
1111111111111
+ Profiler [BASIC]
|-- elapsed time                      [A]   709.103 microseconds.
|-- elapsed time                      [B]    78.207 microseconds.
|-- elapsed time               [OTHER]    74.772 microseconds.
|-- Total                         [BASIC]  2832.662 microseconds.

-- 
View this message in context: http://www.nabble.com/Profiler-tp23656100p23656100.html
Sent from the Slf4J - user mailing list archive at Nabble.com.




More information about the slf4j-user mailing list