Package gw.config

Class DefaultGosuProfilingService

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private long _time0  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void completed​(long startTime, long endTime, java.lang.String path, java.lang.String location, int count, long waitTime)
      This will log a profiling event, note that the start time and end times should have been captured from the same clock, for example IEntityAccess.getCurrentTime().
      protected void doInit()  
      • Methods inherited from class java.lang.Object

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

      • _time0

        private long _time0
    • Constructor Detail

      • DefaultGosuProfilingService

        public DefaultGosuProfilingService()
    • Method Detail

      • completed

        public void completed​(long startTime,
                              long endTime,
                              java.lang.String path,
                              java.lang.String location,
                              int count,
                              long waitTime)
        This will log a profiling event, note that the start time and end times should have been captured from the same clock, for example IEntityAccess.getCurrentTime().
        Specified by:
        completed in interface IGosuProfilingService
        Parameters:
        startTime - the start of the profiled code
        endTime - the end of the profiled code (if 0 will use IEntityAccess.getCurrentTime())
        path - the path that was taken to reach this place (A called B called C could be A->B->C)
        location - this would be the location (maybe file#linenumb)
        count - the number of times this time represented
        waitTime - any wait times that were consumed during this execution