Package net.minecraft.util.profiler
Class ProfilerSystem
java.lang.Object
net.minecraft.util.profiler.ProfilerSystem
- All Implemented Interfaces:
Profiler,ReadableProfiler
- Mappings:
Namespace Name named net/minecraft/util/profiler/ProfilerSystemintermediary net/minecraft/class_3533official bre
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface net.minecraft.util.profiler.Profiler
Profiler.UnionProfiler -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable ProfilerSystem.LocatedInfoprivate final IntSupplierprivate Stringprivate final Map<String, ProfilerSystem.LocatedInfo> private static final Loggerprivate final Set<Pair<String, SampleType>> private final intprivate final longprivate booleanprivate final LongSupplierprivate final LongListprivate static final longprivate final BooleanSupplier -
Constructor Summary
ConstructorsConstructorDescriptionProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, BooleanSupplier timeoutDisabled) -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()private ProfilerSystem.LocatedInfoReturns a set of pairs of profiler location and sample kind.voidmarkSampleType(SampleType type) voidpop()voidvoidvoidvoidvoidvoidIncrement the visit count for a marker.voidIncrement the visit count for a marker.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.profiler.Profiler
addZoneText, addZoneValue, scoped, scoped, setZoneColor, visit, visit
-
Field Details
-
TIMEOUT_NANOSECONDS
private static final long TIMEOUT_NANOSECONDS- Mappings:
Namespace Name Mixin selector named TIMEOUT_NANOSECONDSLnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:Jintermediary field_16267Lnet/minecraft/class_3533;field_16267:Jofficial aLbre;a:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/util/profiler/ProfilerSystem;LOGGER:Lorg/slf4j/Logger;intermediary field_15735Lnet/minecraft/class_3533;field_15735:Lorg/slf4j/Logger;official cLbre;c:Lorg/slf4j/Logger;
-
path
- Mappings:
Namespace Name Mixin selector named pathLnet/minecraft/util/profiler/ProfilerSystem;path:Ljava/util/List;intermediary field_15736Lnet/minecraft/class_3533;field_15736:Ljava/util/List;official dLbre;d:Ljava/util/List;
-
timeList
- Mappings:
Namespace Name Mixin selector named timeListLnet/minecraft/util/profiler/ProfilerSystem;timeList:Lit/unimi/dsi/fastutil/longs/LongList;intermediary field_15730Lnet/minecraft/class_3533;field_15730:Lit/unimi/dsi/fastutil/longs/LongList;official eLbre;e:Lit/unimi/dsi/fastutil/longs/LongList;
-
locationInfos
- Mappings:
Namespace Name Mixin selector named locationInfosLnet/minecraft/util/profiler/ProfilerSystem;locationInfos:Ljava/util/Map;intermediary field_21818Lnet/minecraft/class_3533;field_21818:Ljava/util/Map;official fLbre;f:Ljava/util/Map;
-
endTickGetter
- Mappings:
Namespace Name Mixin selector named endTickGetterLnet/minecraft/util/profiler/ProfilerSystem;endTickGetter:Ljava/util/function/IntSupplier;intermediary field_16266Lnet/minecraft/class_3533;field_16266:Ljava/util/function/IntSupplier;official gLbre;g:Ljava/util/function/IntSupplier;
-
timeGetter
- Mappings:
Namespace Name Mixin selector named timeGetterLnet/minecraft/util/profiler/ProfilerSystem;timeGetter:Ljava/util/function/LongSupplier;intermediary field_21961Lnet/minecraft/class_3533;field_21961:Ljava/util/function/LongSupplier;official hLbre;h:Ljava/util/function/LongSupplier;
-
startTime
private final long startTime- Mappings:
Namespace Name Mixin selector named startTimeLnet/minecraft/util/profiler/ProfilerSystem;startTime:Jintermediary field_15732Lnet/minecraft/class_3533;field_15732:Jofficial iLbre;i:J
-
startTick
private final int startTick- Mappings:
Namespace Name Mixin selector named startTickLnet/minecraft/util/profiler/ProfilerSystem;startTick:Iintermediary field_15729Lnet/minecraft/class_3533;field_15729:Iofficial jLbre;j:I
-
fullPath
- Mappings:
Namespace Name Mixin selector named fullPathLnet/minecraft/util/profiler/ProfilerSystem;fullPath:Ljava/lang/String;intermediary field_15734Lnet/minecraft/class_3533;field_15734:Ljava/lang/String;official kLbre;k:Ljava/lang/String;
-
tickStarted
private boolean tickStarted- Mappings:
Namespace Name Mixin selector named tickStartedLnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Zintermediary field_15733Lnet/minecraft/class_3533;field_15733:Zofficial lLbre;l:Z
-
currentInfo
- Mappings:
Namespace Name Mixin selector named currentInfoLnet/minecraft/util/profiler/ProfilerSystem;currentInfo:Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;intermediary field_21819Lnet/minecraft/class_3533;field_21819:Lnet/minecraft/class_3533$class_4746;official mLbre;m:Lbre$a;
-
timeoutDisabled
- Mappings:
Namespace Name Mixin selector named timeoutDisabledLnet/minecraft/util/profiler/ProfilerSystem;timeoutDisabled:Ljava/util/function/BooleanSupplier;intermediary field_55643Lnet/minecraft/class_3533;field_55643:Ljava/util/function/BooleanSupplier;official nLbre;n:Ljava/util/function/BooleanSupplier;
-
sampleTypes
- Mappings:
Namespace Name Mixin selector named sampleTypesLnet/minecraft/util/profiler/ProfilerSystem;sampleTypes:Ljava/util/Set;intermediary field_33873Lnet/minecraft/class_3533;field_33873:Ljava/util/Set;official oLbre;o:Ljava/util/Set;
-
-
Constructor Details
-
ProfilerSystem
public ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, BooleanSupplier timeoutDisabled) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/util/profiler/ProfilerSystem;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Ljava/util/function/BooleanSupplier;)Vintermediary <init>Lnet/minecraft/class_3533;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Ljava/util/function/BooleanSupplier;)Vofficial <init>Lbre;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Ljava/util/function/BooleanSupplier;)V
-
-
Method Details
-
startTick
public void startTick() -
endTick
public void endTick() -
push
-
push
- Specified by:
pushin interfaceProfiler- Mappings:
Namespace Name Mixin selector named pushLnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)Vintermediary method_15400Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)Vofficial aLbrm;a(Ljava/util/function/Supplier;)V
-
markSampleType
- Specified by:
markSampleTypein interfaceProfiler- Mappings:
Namespace Name Mixin selector named markSampleTypeLnet/minecraft/util/profiler/Profiler;markSampleType(Lnet/minecraft/util/profiler/SampleType;)Vintermediary method_37167Lnet/minecraft/class_3695;method_37167(Lnet/minecraft/class_5949;)Vofficial aLbrm;a(Lbsv;)V
-
pop
public void pop() -
swap
-
swap
- Specified by:
swapin interfaceProfiler- Mappings:
Namespace Name Mixin selector named swapLnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)Vintermediary method_15403Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)Vofficial bLbrm;b(Ljava/util/function/Supplier;)V
-
getCurrentInfo
- Mappings:
Namespace Name Mixin selector named getCurrentInfoLnet/minecraft/util/profiler/ProfilerSystem;getCurrentInfo()Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;intermediary method_24246Lnet/minecraft/class_3533;method_24246()Lnet/minecraft/class_3533$class_4746;official fLbre;f()Lbre$a;
-
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 named visitLnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;I)Vintermediary method_24270Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;I)Vofficial aLbrm;a(Ljava/lang/String;I)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 named visitLnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;I)Vintermediary method_24271Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;I)Vofficial aLbrm;a(Ljava/util/function/Supplier;I)V
-
getResult
- Specified by:
getResultin interfaceReadableProfiler- Mappings:
Namespace Name Mixin selector named getResultLnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;intermediary method_16064Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;official dLbrj;d()Lbrk;
-
getInfo
- Specified by:
getInfoin interfaceReadableProfiler- Mappings:
Namespace Name Mixin selector named getInfoLnet/minecraft/util/profiler/ReadableProfiler;getInfo(Ljava/lang/String;)Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;intermediary method_34696Lnet/minecraft/class_3693;method_34696(Ljava/lang/String;)Lnet/minecraft/class_3533$class_4746;official cLbrj;c(Ljava/lang/String;)Lbre$a;
-
getSampleTargets
Returns a set of pairs of profiler location and sample kind.- Specified by:
getSampleTargetsin interfaceReadableProfiler- Returns:
- a set of pairs of profiler location and sample kind
- Mappings:
Namespace Name Mixin selector named getSampleTargetsLnet/minecraft/util/profiler/ReadableProfiler;getSampleTargets()Ljava/util/Set;intermediary method_37168Lnet/minecraft/class_3693;method_37168()Ljava/util/Set;official eLbrj;e()Ljava/util/Set;
-