Class SampleSummary

java.lang.Object
redempt.redlib.dev.profiler.SampleSummary

public class SampleSummary extends Object
Represents a summary of profiler data
  • Constructor Details

    • SampleSummary

      protected SampleSummary(Collection<redempt.redlib.dev.profiler.Sample> samples)
    • SampleSummary

      protected SampleSummary()
  • Method Details

    • add

      protected void add(StackTraceElement[] stack)
    • clone

      public SampleSummary clone()
      Overrides:
      clone in class Object
      Returns:
      A clone of this SampleSummary
    • getStart

      public long getStart()
      Returns:
      The time this SampleSummary's data starts at
    • getEnd

      public long getEnd()
      Returns:
      The time this SampleSummary's data ends at
    • getDuration

      public long getDuration()
      Returns:
      The difference between the end and start of this SampleSummary's data
    • getRoot

      public SampleSummary.SampleMethod getRoot()
      Returns:
      The root method, which all other methods were called by some descendent of in this summary
    • getMethodsByName

      public Map<String,List<SampleSummary.SampleMethod>> getMethodsByName()
      Returns:
      A map of method names to the SampleSummary.SampleMethods associated with them. One name can have multiple mappings because each SampleMethod represents a method and its relative position in the stack trace.