Package net.minecraft.util.profiler
Class ProfilerSystem
java.lang.Object
net.minecraft.util.profiler.ProfilerSystem
- All Implemented Interfaces:
Profiler,ReadableProfiler
public class ProfilerSystem extends Object implements ReadableProfiler
- Mappings:
Namespace Name official aolintermediary net/minecraft/class_3533named net/minecraft/util/profiler/ProfilerSystem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classProfilerSystem.LocatedInfo -
Field Summary
Fields Modifier and Type Field Description private booleancheckTimeoutprivate ProfilerSystem.LocatedInfocurrentInfoprivate IntSupplierendTickGetterprivate Stringlocationprivate Map<String,ProfilerSystem.LocatedInfo>locationInfosprivate static LoggerLOGGERprivate List<String>pathprivate intstartTickprivate longstartTimeprivate booleantickStartedprivate LongSuppliertimeGetterprivate LongListtimeListprivate static longTIMEOUT_NANOSECONDS -
Constructor Summary
Constructors Constructor Description ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout) -
Method Summary
Modifier and Type Method Description voidendTick()private ProfilerSystem.LocatedInfogetCurrentInfo()ProfileResultgetResult()voidpop()voidpush(String location)voidpush(Supplier<String> locationGetter)voidstartTick()voidswap(String location)voidswap(Supplier<String> locationGetter)voidvisit(String marker)Increment the visit count for a marker.voidvisit(Supplier<String> markerGetter)Increment the visit count for a marker.
-
Field Details
-
TIMEOUT_NANOSECONDS
private static final long TIMEOUT_NANOSECONDS- Mappings:
Namespace Name Mixin selector official aLaol;a:Jintermediary field_16267Lnet/minecraft/class_3533;field_16267:Jnamed TIMEOUT_NANOSECONDSLnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector official bLaol;b:Lorg/apache/logging/log4j/Logger;intermediary field_15735Lnet/minecraft/class_3533;field_15735:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/util/profiler/ProfilerSystem;LOGGER:Lorg/apache/logging/log4j/Logger;
-
path
- Mappings:
Namespace Name Mixin selector official cLaol;c:Ljava/util/List;intermediary field_15736Lnet/minecraft/class_3533;field_15736:Ljava/util/List;named pathLnet/minecraft/util/profiler/ProfilerSystem;path:Ljava/util/List;
-
timeList
- Mappings:
Namespace Name Mixin selector official dLaol;d:Lit/unimi/dsi/fastutil/longs/LongList;intermediary field_15730Lnet/minecraft/class_3533;field_15730:Lit/unimi/dsi/fastutil/longs/LongList;named timeListLnet/minecraft/util/profiler/ProfilerSystem;timeList:Lit/unimi/dsi/fastutil/longs/LongList;
-
locationInfos
- Mappings:
Namespace Name Mixin selector official eLaol;e:Ljava/util/Map;intermediary field_21818Lnet/minecraft/class_3533;field_21818:Ljava/util/Map;named locationInfosLnet/minecraft/util/profiler/ProfilerSystem;locationInfos:Ljava/util/Map;
-
endTickGetter
- Mappings:
Namespace Name Mixin selector official fLaol;f:Ljava/util/function/IntSupplier;intermediary field_16266Lnet/minecraft/class_3533;field_16266:Ljava/util/function/IntSupplier;named endTickGetterLnet/minecraft/util/profiler/ProfilerSystem;endTickGetter:Ljava/util/function/IntSupplier;
-
timeGetter
- Mappings:
Namespace Name Mixin selector official gLaol;g:Ljava/util/function/LongSupplier;intermediary field_21961Lnet/minecraft/class_3533;field_21961:Ljava/util/function/LongSupplier;named timeGetterLnet/minecraft/util/profiler/ProfilerSystem;timeGetter:Ljava/util/function/LongSupplier;
-
startTime
private final long startTime- Mappings:
Namespace Name Mixin selector official hLaol;h:Jintermediary field_15732Lnet/minecraft/class_3533;field_15732:Jnamed startTimeLnet/minecraft/util/profiler/ProfilerSystem;startTime:J
-
startTick
private final int startTick- Mappings:
Namespace Name Mixin selector official iLaol;i:Iintermediary field_15729Lnet/minecraft/class_3533;field_15729:Inamed startTickLnet/minecraft/util/profiler/ProfilerSystem;startTick:I
-
location
- Mappings:
Namespace Name Mixin selector official jLaol;j:Ljava/lang/String;intermediary field_15734Lnet/minecraft/class_3533;field_15734:Ljava/lang/String;named locationLnet/minecraft/util/profiler/ProfilerSystem;location:Ljava/lang/String;
-
tickStarted
private boolean tickStarted- Mappings:
Namespace Name Mixin selector official kLaol;k:Zintermediary field_15733Lnet/minecraft/class_3533;field_15733:Znamed tickStartedLnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Z
-
currentInfo
- Mappings:
Namespace Name Mixin selector official lLaol;l:Laol$a;intermediary field_21819Lnet/minecraft/class_3533;field_21819:Lnet/minecraft/class_3533$class_4746;named currentInfoLnet/minecraft/util/profiler/ProfilerSystem;currentInfo:Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
-
checkTimeout
private final boolean checkTimeout- Mappings:
Namespace Name Mixin selector official mLaol;m:Zintermediary field_20345Lnet/minecraft/class_3533;field_20345:Znamed checkTimeoutLnet/minecraft/util/profiler/ProfilerSystem;checkTimeout:Z
-
-
Constructor Details
-
ProfilerSystem
- Mappings:
Namespace Name Mixin selector official <init>Laol;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)Vintermediary <init>Lnet/minecraft/class_3533;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)Vnamed <init>Lnet/minecraft/util/profiler/ProfilerSystem;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
-
-
Method Details
-
startTick
public void startTick() -
endTick
public void endTick() -
push
-
push
- Specified by:
pushin interfaceProfiler- Mappings:
Namespace Name Mixin selector official aLaos;a(Ljava/util/function/Supplier;)Vintermediary method_15400Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)Vnamed pushLnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V
-
pop
public void pop() -
swap
-
swap
- Specified by:
swapin interfaceProfiler- Mappings:
Namespace Name Mixin selector official bLaos;b(Ljava/util/function/Supplier;)Vintermediary method_15403Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)Vnamed swapLnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V
-
getCurrentInfo
- Mappings:
Namespace Name Mixin selector official eLaol;e()Laol$a;intermediary method_24246Lnet/minecraft/class_3533;method_24246()Lnet/minecraft/class_3533$class_4746;named getCurrentInfoLnet/minecraft/util/profiler/ProfilerSystem;getCurrentInfo()Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
-
visit
Increment the visit count for a marker.This is useful to keep track of number of calls made to performance- wise expensive methods.
- Specified by:
visitin interfaceProfiler- Parameters:
marker- a unique marker- Mappings:
Namespace Name Mixin selector official cLaos;c(Ljava/lang/String;)Vintermediary method_24270Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;)Vnamed visitLnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;)V
-
visit
Increment the visit count for a marker.This is useful to keep track of number of calls made to performance- wise expensive methods.
This method is preferred if getting the marker is costly; the supplier won't be called if the profiler is disabled.
- Specified by:
visitin interfaceProfiler- Parameters:
markerGetter- the getter for a unique marker- Mappings:
Namespace Name Mixin selector official cLaos;c(Ljava/util/function/Supplier;)Vintermediary method_24271Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;)Vnamed visitLnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;)V
-
getResult
- Specified by:
getResultin interfaceReadableProfiler- Mappings:
Namespace Name Mixin selector official dLaoq;d()Laor;intermediary method_16064Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;named getResultLnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;
-