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 aol
intermediary net/minecraft/class_3533
named net/minecraft/util/profiler/ProfilerSystem
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ProfilerSystem.LocatedInfo
-
Field Summary
Fields Modifier and Type Field Description private boolean
checkTimeout
private ProfilerSystem.LocatedInfo
currentInfo
private IntSupplier
endTickGetter
private String
location
private Map<String,ProfilerSystem.LocatedInfo>
locationInfos
private static Logger
LOGGER
private List<String>
path
private int
startTick
private long
startTime
private boolean
tickStarted
private LongSupplier
timeGetter
private LongList
timeList
private static long
TIMEOUT_NANOSECONDS
-
Constructor Summary
Constructors Constructor Description ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout)
-
Method Summary
Modifier and Type Method Description void
endTick()
private ProfilerSystem.LocatedInfo
getCurrentInfo()
ProfileResult
getResult()
void
pop()
void
push(String location)
void
push(Supplier<String> locationGetter)
void
startTick()
void
swap(String location)
void
swap(Supplier<String> locationGetter)
void
visit(String marker)
Increment the visit count for a marker.void
visit(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 a
Laol;a:J
intermediary field_16267
Lnet/minecraft/class_3533;field_16267:J
named TIMEOUT_NANOSECONDS
Lnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:J
-
LOGGER
- Mappings:
Namespace Name Mixin selector official b
Laol;b:Lorg/apache/logging/log4j/Logger;
intermediary field_15735
Lnet/minecraft/class_3533;field_15735:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/util/profiler/ProfilerSystem;LOGGER:Lorg/apache/logging/log4j/Logger;
-
path
- Mappings:
Namespace Name Mixin selector official c
Laol;c:Ljava/util/List;
intermediary field_15736
Lnet/minecraft/class_3533;field_15736:Ljava/util/List;
named path
Lnet/minecraft/util/profiler/ProfilerSystem;path:Ljava/util/List;
-
timeList
- Mappings:
Namespace Name Mixin selector official d
Laol;d:Lit/unimi/dsi/fastutil/longs/LongList;
intermediary field_15730
Lnet/minecraft/class_3533;field_15730:Lit/unimi/dsi/fastutil/longs/LongList;
named timeList
Lnet/minecraft/util/profiler/ProfilerSystem;timeList:Lit/unimi/dsi/fastutil/longs/LongList;
-
locationInfos
- Mappings:
Namespace Name Mixin selector official e
Laol;e:Ljava/util/Map;
intermediary field_21818
Lnet/minecraft/class_3533;field_21818:Ljava/util/Map;
named locationInfos
Lnet/minecraft/util/profiler/ProfilerSystem;locationInfos:Ljava/util/Map;
-
endTickGetter
- Mappings:
Namespace Name Mixin selector official f
Laol;f:Ljava/util/function/IntSupplier;
intermediary field_16266
Lnet/minecraft/class_3533;field_16266:Ljava/util/function/IntSupplier;
named endTickGetter
Lnet/minecraft/util/profiler/ProfilerSystem;endTickGetter:Ljava/util/function/IntSupplier;
-
timeGetter
- Mappings:
Namespace Name Mixin selector official g
Laol;g:Ljava/util/function/LongSupplier;
intermediary field_21961
Lnet/minecraft/class_3533;field_21961:Ljava/util/function/LongSupplier;
named timeGetter
Lnet/minecraft/util/profiler/ProfilerSystem;timeGetter:Ljava/util/function/LongSupplier;
-
startTime
private final long startTime- Mappings:
Namespace Name Mixin selector official h
Laol;h:J
intermediary field_15732
Lnet/minecraft/class_3533;field_15732:J
named startTime
Lnet/minecraft/util/profiler/ProfilerSystem;startTime:J
-
startTick
private final int startTick- Mappings:
Namespace Name Mixin selector official i
Laol;i:I
intermediary field_15729
Lnet/minecraft/class_3533;field_15729:I
named startTick
Lnet/minecraft/util/profiler/ProfilerSystem;startTick:I
-
location
- Mappings:
Namespace Name Mixin selector official j
Laol;j:Ljava/lang/String;
intermediary field_15734
Lnet/minecraft/class_3533;field_15734:Ljava/lang/String;
named location
Lnet/minecraft/util/profiler/ProfilerSystem;location:Ljava/lang/String;
-
tickStarted
private boolean tickStarted- Mappings:
Namespace Name Mixin selector official k
Laol;k:Z
intermediary field_15733
Lnet/minecraft/class_3533;field_15733:Z
named tickStarted
Lnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Z
-
currentInfo
- Mappings:
Namespace Name Mixin selector official l
Laol;l:Laol$a;
intermediary field_21819
Lnet/minecraft/class_3533;field_21819:Lnet/minecraft/class_3533$class_4746;
named currentInfo
Lnet/minecraft/util/profiler/ProfilerSystem;currentInfo:Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
-
checkTimeout
private final boolean checkTimeout- Mappings:
Namespace Name Mixin selector official m
Laol;m:Z
intermediary field_20345
Lnet/minecraft/class_3533;field_20345:Z
named checkTimeout
Lnet/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)V
intermediary <init>
Lnet/minecraft/class_3533;<init>(Ljava/util/function/LongSupplier;Ljava/util/function/IntSupplier;Z)V
named <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:
push
in interfaceProfiler
- Mappings:
Namespace Name Mixin selector official a
Laos;a(Ljava/util/function/Supplier;)V
intermediary method_15400
Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)V
named push
Lnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V
-
pop
public void pop() -
swap
-
swap
- Specified by:
swap
in interfaceProfiler
- Mappings:
Namespace Name Mixin selector official b
Laos;b(Ljava/util/function/Supplier;)V
intermediary method_15403
Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)V
named swap
Lnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V
-
getCurrentInfo
- Mappings:
Namespace Name Mixin selector official e
Laol;e()Laol$a;
intermediary method_24246
Lnet/minecraft/class_3533;method_24246()Lnet/minecraft/class_3533$class_4746;
named getCurrentInfo
Lnet/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:
visit
in interfaceProfiler
- Parameters:
marker
- a unique marker- Mappings:
Namespace Name Mixin selector official c
Laos;c(Ljava/lang/String;)V
intermediary method_24270
Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;)V
named visit
Lnet/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:
visit
in interfaceProfiler
- Parameters:
markerGetter
- the getter for a unique marker- Mappings:
Namespace Name Mixin selector official c
Laos;c(Ljava/util/function/Supplier;)V
intermediary method_24271
Lnet/minecraft/class_3695;method_24271(Ljava/util/function/Supplier;)V
named visit
Lnet/minecraft/util/profiler/Profiler;visit(Ljava/util/function/Supplier;)V
-
getResult
- Specified by:
getResult
in interfaceReadableProfiler
- Mappings:
Namespace Name Mixin selector official d
Laoq;d()Laor;
intermediary method_16064
Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;
named getResult
Lnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;
-