Class Profiler

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) static class  Profiler.Section  
    • Constructor Summary

      Constructors 
      Constructor Description
      Profiler​(java.util.function.LongSupplier p_i231482_1_, java.util.function.IntSupplier p_i231482_2_, boolean p_i231482_3_)  
    • Field Detail

      • WARNING_TIME_NANOS

        private static final long WARNING_TIME_NANOS
      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • paths

        private final java.util.List<java.lang.String> paths
      • startTimes

        private final it.unimi.dsi.fastutil.longs.LongList startTimes
      • entries

        private final java.util.Map<java.lang.String,​Profiler.Section> entries
      • getTickTime

        private final java.util.function.IntSupplier getTickTime
      • getRealTime

        private final java.util.function.LongSupplier getRealTime
      • startTimeNano

        private final long startTimeNano
      • startTimeTicks

        private final int startTimeTicks
      • path

        private java.lang.String path
      • started

        private boolean started
      • warn

        private final boolean warn
    • Constructor Detail

      • Profiler

        public Profiler​(java.util.function.LongSupplier p_i231482_1_,
                        java.util.function.IntSupplier p_i231482_2_,
                        boolean p_i231482_3_)
    • Method Detail

      • endTick

        public void endTick()
        Specified by:
        endTick in interface IProfiler
      • push

        public void push​(java.lang.String p_76320_1_)
        Specified by:
        push in interface IProfiler
      • push

        public void push​(java.util.function.Supplier<java.lang.String> p_194340_1_)
        Specified by:
        push in interface IProfiler
      • pop

        public void pop()
        Specified by:
        pop in interface IProfiler
      • popPush

        public void popPush​(java.lang.String p_219895_1_)
        Specified by:
        popPush in interface IProfiler
      • popPush

        public void popPush​(java.util.function.Supplier<java.lang.String> p_194339_1_)
        Specified by:
        popPush in interface IProfiler
      • incrementCounter

        public void incrementCounter​(java.lang.String p_230035_1_)
        Specified by:
        incrementCounter in interface IProfiler
      • incrementCounter

        public void incrementCounter​(java.util.function.Supplier<java.lang.String> p_230036_1_)
        Specified by:
        incrementCounter in interface IProfiler