类 ProfilerSystem
- java.lang.Object
-
- net.minecraft.util.profiler.ProfilerSystem
-
- 所有已实现的接口:
Profiler,ReadableProfiler
public class ProfilerSystem extends Object implements ReadableProfiler
- Mappings:
Namespace Name official apeintermediary net/minecraft/class_3533named net/minecraft/util/profiler/ProfilerSystem
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classProfilerSystem.LocatedInfo
-
字段概要
字段 修饰符和类型 字段 说明 private booleancheckTimeoutprivate @Nullable ProfilerSystem.LocatedInfocurrentInfoprivate IntSupplierendTickGetterprivate Stringlocationprivate Map<String,ProfilerSystem.LocatedInfo>locationInfosprivate static LoggerLOGGERprivate List<String>pathprivate intstartTickprivate longstartTimeprivate booleantickStartedprivate LongSuppliertimeGetterprivate LongListtimeListprivate static longTIMEOUT_NANOSECONDS-
从接口继承的字段 net.minecraft.util.profiler.Profiler
field_29925
-
-
构造器概要
构造器 构造器 说明 ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidendTick()private ProfilerSystem.LocatedInfogetCurrentInfo()@Nullable ProfilerSystem.LocatedInfogetInfo(String name)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.
-
-
-
字段详细资料
-
TIMEOUT_NANOSECONDS
private static final long TIMEOUT_NANOSECONDS
- Mappings:
Namespace Name Mixin selector official aLape;a:Jintermediary field_16267Lnet/minecraft/class_3533;field_16267:Jnamed TIMEOUT_NANOSECONDSLnet/minecraft/util/profiler/ProfilerSystem;TIMEOUT_NANOSECONDS:J
-
LOGGER
private static final Logger LOGGER
- Mappings:
Namespace Name Mixin selector official cLape;c: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
private final List<String> path
- Mappings:
Namespace Name Mixin selector official dLape;d: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
private final LongList timeList
- Mappings:
Namespace Name Mixin selector official eLape;e: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
private final Map<String,ProfilerSystem.LocatedInfo> locationInfos
- Mappings:
Namespace Name Mixin selector official fLape;f: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
private final IntSupplier endTickGetter
- Mappings:
Namespace Name Mixin selector official gLape;g: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
private final LongSupplier timeGetter
- Mappings:
Namespace Name Mixin selector official hLape;h: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 iLape;i: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 jLape;j:Iintermediary field_15729Lnet/minecraft/class_3533;field_15729:Inamed startTickLnet/minecraft/util/profiler/ProfilerSystem;startTick:I
-
location
private String location
- Mappings:
Namespace Name Mixin selector official kLape;k: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 lLape;l:Zintermediary field_15733Lnet/minecraft/class_3533;field_15733:Znamed tickStartedLnet/minecraft/util/profiler/ProfilerSystem;tickStarted:Z
-
currentInfo
@Nullable private @Nullable ProfilerSystem.LocatedInfo currentInfo
- Mappings:
Namespace Name Mixin selector official mLape;m:Lape$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 nLape;n:Zintermediary field_20345Lnet/minecraft/class_3533;field_20345:Znamed checkTimeoutLnet/minecraft/util/profiler/ProfilerSystem;checkTimeout:Z
-
-
构造器详细资料
-
ProfilerSystem
public ProfilerSystem(LongSupplier timeGetter, IntSupplier tickGetter, boolean checkTimeout)
- Mappings:
Namespace Name Mixin selector official <init>Lape;<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
-
-
方法详细资料
-
startTick
public void startTick()
-
endTick
public void endTick()
-
push
public void push(String location)
-
pop
public void pop()
-
swap
public void swap(String location)
-
getCurrentInfo
private ProfilerSystem.LocatedInfo getCurrentInfo()
- Mappings:
Namespace Name Mixin selector official eLape;e()Lape$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
public void visit(String marker)
Increment the visit count for a marker.This is useful to keep track of number of calls made to performance- wise expensive methods.
-
visit
public void visit(Supplier<String> markerGetter)
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.
- 指定者:
visit在接口中Profiler- 参数:
markerGetter- the getter for a unique marker- Mappings:
Namespace Name Mixin selector official cLapl;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
public ProfileResult getResult()
- 指定者:
getResult在接口中ReadableProfiler- Mappings:
Namespace Name Mixin selector official dLapj;d()Lapk;intermediary method_16064Lnet/minecraft/class_3693;method_16064()Lnet/minecraft/class_3696;named getResultLnet/minecraft/util/profiler/ReadableProfiler;getResult()Lnet/minecraft/util/profiler/ProfileResult;
-
getInfo
@Nullable public @Nullable ProfilerSystem.LocatedInfo getInfo(String name)
- 指定者:
getInfo在接口中ReadableProfiler- Mappings:
Namespace Name Mixin selector official dLapj;d(Ljava/lang/String;)Lape$a;intermediary method_34696Lnet/minecraft/class_3693;method_34696(Ljava/lang/String;)Lnet/minecraft/class_3533$class_4746;named getInfoLnet/minecraft/util/profiler/ReadableProfiler;getInfo(Ljava/lang/String;)Lnet/minecraft/util/profiler/ProfilerSystem$LocatedInfo;
-
-