org.nuxeo.common.debug
Class Profiler
java.lang.Object
org.nuxeo.common.debug.Profiler
public final class Profiler
- extends java.lang.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
Method Summary |
static void |
checkpoint(java.lang.String name)
|
static void |
print(java.lang.String name)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkpoint
public static void checkpoint(java.lang.String name)
print
public static void print(java.lang.String name)
Copyright © 2010 Nuxeo SAS. All Rights Reserved.