org.nuxeo.common.debug
Class Profiler
java.lang.Object
org.nuxeo.common.debug.Profiler
public final class Profiler
- extends Object
Simple tool to measure elapsed time in code blocks.
Usage:
Profile.checkpoint("my_routine");
// ... here is your routine .. to be measured
Profile.print("my_routine"); // -> print elapsed time in seconds.
You can use nested checkpoints as well.
- Author:
- bstefanescu
checkpoint
public static void checkpoint(String name)
print
public static void print(String name)
Copyright © 2011 Nuxeo SAS. All Rights Reserved.