com.jivesoftware.util.profile
Class Profiler
java.lang.Object
com.jivesoftware.util.profile.Profiler
public class Profiler
- extends java.lang.Object
A basic profiler used for development or debugging purposes only.
Basic usage:
Profiler.begin("key");
...
Profiler.end("key");
Then using the getStats()
method you can iterate through the stats and view
the results.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Profiler
public Profiler()
isProfilingEnabled
public static boolean isProfilingEnabled()
setProfilingEnabled
public static void setProfilingEnabled(boolean enabled)
resetStatistics
public static void resetStatistics()
begin
public static void begin(java.lang.String name)
end
public static void end(java.lang.String name)
getStats
public static java.util.HashMap getStats()
start
public void start(java.lang.String name)
stop
public void stop(java.lang.String name)
Copyright © 1999-2006 Jive Software.