Class ForgeTimings<T>

  • Type Parameters:
    T -

    public class ForgeTimings<T>
    extends java.lang.Object
    ForgeTimings aggregates timings data collected by TimeTracker for an Object and performs operations for interpretation of the data.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.ref.WeakReference<T> object  
      private int[] rawTimingData  
    • Constructor Summary

      Constructors 
      Constructor Description
      ForgeTimings​(T object, int[] rawTimingData)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getAverageTimings()
      Averages the raw timings data collected
      java.lang.ref.WeakReference<T> getObject()
      Retrieves the object that the timings are for
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • object

        private java.lang.ref.WeakReference<T> object
      • rawTimingData

        private int[] rawTimingData
    • Constructor Detail

      • ForgeTimings

        public ForgeTimings​(T object,
                            int[] rawTimingData)
    • Method Detail

      • getObject

        public java.lang.ref.WeakReference<T> getObject()
        Retrieves the object that the timings are for
        Returns:
        The object
      • getAverageTimings

        public double getAverageTimings()
        Averages the raw timings data collected
        Returns:
        An average of the raw timing data