Jive Forums API (5.5.20.2-oracle) Developer Javadocs

com.jivesoftware.util.profile
Class Profiler

java.lang.Object
  extended by 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.


Nested Class Summary
static class Profiler.ProfileStat
           
 
Constructor Summary
Profiler()
           
 
Method Summary
static void begin(java.lang.String name)
           
static void end(java.lang.String name)
           
static java.util.HashMap getStats()
           
static boolean isProfilingEnabled()
           
static void resetStatistics()
           
static void setProfilingEnabled(boolean enabled)
           
 void start(java.lang.String name)
           
 void stop(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profiler

public Profiler()
Method Detail

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)

Jive Forums Project Page

Copyright © 1999-2006 Jive Software.