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/ProfilerSystem- intermediary - net/minecraft/class_3533- official - bom
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.util.profiler.ProfilerProfiler.UnionProfiler
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate @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 long
- 
Constructor SummaryConstructorsConstructorDescriptionProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout) 
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.util.profiler.ProfileraddZoneText, addZoneValue, scoped, scoped, setZoneColor, visit, visit
- 
Field Details- 
TIMEOUT_NANOSECONDSprivate static final long TIMEOUT_NANOSECONDS- Mappings:
- Namespace - Name - Mixin selector - named - TIMEOUT_NANOSECONDS- Lnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:J- intermediary - field_16267- Lnet/minecraft/class_3533;field_16267:J- official - a- Lbom;a:J
 
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/util/profiler/ProfilerSystem;LOGGER:Lorg/slf4j/Logger;- intermediary - field_15735- Lnet/minecraft/class_3533;field_15735:Lorg/slf4j/Logger;- official - c- Lbom;c:Lorg/slf4j/Logger;
 
- 
path- Mappings:
- Namespace - Name - Mixin selector - named - path- Lnet/minecraft/util/profiler/ProfilerSystem;path:Ljava/util/List;- intermediary - field_15736- Lnet/minecraft/class_3533;field_15736:Ljava/util/List;- official - d- Lbom;d:Ljava/util/List;
 
- 
timeList- Mappings:
- Namespace - Name - Mixin selector - named - timeList- Lnet/minecraft/util/profiler/ProfilerSystem;timeList:Lit/unimi/dsi/fastutil/longs/LongList;- intermediary - field_15730- Lnet/minecraft/class_3533;field_15730:Lit/unimi/dsi/fastutil/longs/LongList;- official - e- Lbom;e:Lit/unimi/dsi/fastutil/longs/LongList;
 
- 
locationInfos- Mappings:
- Namespace - Name - Mixin selector - named - locationInfos- Lnet/minecraft/util/profiler/ProfilerSystem;locationInfos:Ljava/util/Map;- intermediary - field_21818- Lnet/minecraft/class_3533;field_21818:Ljava/util/Map;- official - f- Lbom;f:Ljava/util/Map;
 
- 
endTickGetter- Mappings:
- Namespace - Name - Mixin selector - named - endTickGetter- Lnet/minecraft/util/profiler/ProfilerSystem;endTickGetter:Ljava/util/function/IntSupplier;- intermediary - field_16266- Lnet/minecraft/class_3533;field_16266:Ljava/util/function/IntSupplier;- official - g- Lbom;g:Ljava/util/function/IntSupplier;
 
- 
timeGetter- Mappings:
- Namespace - Name - Mixin selector - named - timeGetter- Lnet/minecraft/util/profiler/ProfilerSystem;timeGetter:Ljava/util/function/LongSupplier;- intermediary - field_21961- Lnet/minecraft/class_3533;field_21961:Ljava/util/function/LongSupplier;- official - h- Lbom;h:Ljava/util/function/LongSupplier;
 
- 
startTimeprivate final long startTime- Mappings:
- Namespace - Name - Mixin selector - named - startTime- Lnet/minecraft/util/profiler/ProfilerSystem;startTime:J- intermediary - field_15732- Lnet/minecraft/class_3533;field_15732:J- official - i- Lbom;i:J
 
- 
startTickprivate final int startTick- Mappings:
- Namespace - Name - Mixin selector - named - startTick- Lnet/minecraft/util/profiler/ProfilerSystem;startTick:I- intermediary - field_15729- Lnet/minecraft/class_3533;field_15729:I- official - j- Lbom;j:I
 
- 
fullPath- Mappings:
- Namespace - Name - Mixin selector - named - fullPath- Lnet/minecraft/util/profiler/ProfilerSystem;fullPath:Ljava/lang/String;- intermediary - field_15734- Lnet/minecraft/class_3533;field_15734:Ljava/lang/String;- official - k- Lbom;k:Ljava/lang/String;
 
- 
tickStartedprivate boolean tickStarted- Mappings:
- Namespace - Name - Mixin selector - named - tickStarted- Lnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Z- intermediary - field_15733- Lnet/minecraft/class_3533;field_15733:Z- official - l- Lbom;l:Z
 
- 
currentInfo- Mappings:
- Namespace - Name - Mixin selector - named - currentInfo- Lnet/minecraft/util/profiler/ProfilerSystem;currentInfo:Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;- intermediary - field_21819- Lnet/minecraft/class_3533;field_21819:Lnet/minecraft/class_3533$class_4746;- official - m- Lbom;m:Lbom$a;
 
- 
checkTimeoutprivate final boolean checkTimeout- Mappings:
- Namespace - Name - Mixin selector - named - checkTimeout- Lnet/minecraft/util/profiler/ProfilerSystem;checkTimeout:Z- intermediary - field_20345- Lnet/minecraft/class_3533;field_20345:Z- official - n- Lbom;n:Z
 
- 
sampleTypes- Mappings:
- Namespace - Name - Mixin selector - named - sampleTypes- Lnet/minecraft/util/profiler/ProfilerSystem;sampleTypes:Ljava/util/Set;- intermediary - field_33873- Lnet/minecraft/class_3533;field_33873:Ljava/util/Set;- official - o- Lbom;o:Ljava/util/Set;
 
 
- 
- 
Constructor Details- 
ProfilerSystem- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/util/profiler/ProfilerSystem;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V- intermediary - <init>- Lnet/minecraft/class_3533;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V- official - <init>- Lbom;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
 
 
- 
- 
Method Details- 
startTickpublic void startTick()
- 
endTickpublic void endTick()
- 
push
- 
push- Specified by:
- pushin interface- Profiler
- Mappings:
- Namespace - Name - Mixin selector - named - push- Lnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V- intermediary - method_15400- Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)V- official - a- Lbou;a(Ljava/util/function/Supplier;)V
 
- 
markSampleType- Specified by:
- markSampleTypein interface- Profiler
- Mappings:
- Namespace - Name - Mixin selector - named - markSampleType- Lnet/minecraft/util/profiler/Profiler;markSampleType(Lnet/minecraft/util/profiler/SampleType;)V- intermediary - method_37167- Lnet/minecraft/class_3695;method_37167(Lnet/minecraft/class_5949;)V- official - a- Lbou;a(Lbqd;)V
 
- 
poppublic void pop()
- 
swap
- 
swap- Specified by:
- swapin interface- Profiler
- Mappings:
- Namespace - Name - Mixin selector - named - swap- Lnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V- intermediary - method_15403- Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)V- official - b- Lbou;b(Ljava/util/function/Supplier;)V
 
- 
getCurrentInfo- Mappings:
- Namespace - Name - Mixin selector - named - getCurrentInfo- Lnet/minecraft/util/profiler/ProfilerSystem;getCurrentInfo()Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;- intermediary - method_24246- Lnet/minecraft/class_3533;method_24246()Lnet/minecraft/class_3533$class_4746;- official - f- Lbom;f()Lbom$a;
 
- 
visitIncrement 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 interface- Profiler
- Parameters:
- marker- a unique marker
- Mappings:
- Namespace - Name - Mixin selector - named - visit- Lnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;I)V- intermediary - method_24270- Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;I)V- official - a- Lbou;a(Ljava/lang/String;I)V
 
- 
visitIncrement 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 interface- Profiler
- Parameters:
- markerGetter- the getter for a unique marker
- Mappings:
- Namespace - Name - Mixin selector - named - visit- Lnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;I)V- intermediary - method_24271- Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;I)V- official - a- Lbou;a(Ljava/util/function/Supplier;I)V
 
- 
getResult- Specified by:
- getResultin interface- ReadableProfiler
- Mappings:
- Namespace - Name - Mixin selector - named - getResult- Lnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;- intermediary - method_16064- Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;- official - d- Lbor;d()Lbos;
 
- 
getInfo- Specified by:
- getInfoin interface- ReadableProfiler
- Mappings:
- Namespace - Name - Mixin selector - named - getInfo- Lnet/minecraft/util/profiler/ReadableProfiler;getInfo(Ljava/lang/String;)Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;- intermediary - method_34696- Lnet/minecraft/class_3693;method_34696(Ljava/lang/String;)Lnet/minecraft/class_3533$class_4746;- official - c- Lbor;c(Ljava/lang/String;)Lbom$a;
 
- 
getSampleTargetsReturns a set of pairs of profiler location and sample kind.- Specified by:
- getSampleTargetsin interface- ReadableProfiler
- Returns:
- a set of pairs of profiler location and sample kind
- Mappings:
- Namespace - Name - Mixin selector - named - getSampleTargets- Lnet/minecraft/util/profiler/ReadableProfiler;getSampleTargets()Ljava/util/Set;- intermediary - method_37168- Lnet/minecraft/class_3693;method_37168()Ljava/util/Set;- official - e- Lbor;e()Ljava/util/Set;
 
 
-