Class Profiler

java.lang.Object
redempt.redlib.dev.profiler.Profiler
Direct Known Subclasses:
BurstProfiler, PassiveProfiler

public abstract class Profiler extends Object
A base class of a Profiler which can be used to analyze the performance of the server. Runs asynchronously in its own thread.
  • Constructor Details

    • Profiler

      public Profiler()
  • Method Details

    • stopAll

      public static void stopAll()
      Stop all running profilers
    • start

      public abstract void start()
      Start this profiler. Must be run from the thread you intend to profile.
    • end

      protected abstract void end()
    • getSummary

      public abstract SampleSummary getSummary()
      Returns:
      A SampleSummary representing all of the data collected by this profiler
    • stop

      public final void stop()
      Stop this profiler