类 DummyProfiler
- java.lang.Object
-
- net.minecraft.util.profiler.DummyProfiler
-
- 所有已实现的接口:
Profiler,ReadableProfiler
public class DummyProfiler extends Object implements ReadableProfiler
- Mappings:
Namespace Name official apiintermediary net/minecraft/class_3694named net/minecraft/util/profiler/DummyProfiler
-
-
字段概要
字段 修饰符和类型 字段 说明 static DummyProfilerINSTANCE-
从接口继承的字段 net.minecraft.util.profiler.Profiler
field_29925
-
-
构造器概要
构造器 限定符 构造器 说明 privateDummyProfiler()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidendTick()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.
-
-
-
字段详细资料
-
INSTANCE
public static final DummyProfiler INSTANCE
- Mappings:
Namespace Name Mixin selector official aLapi;a:Lapi;intermediary field_16280Lnet/minecraft/class_3694;field_16280:Lnet/minecraft/class_3694;named INSTANCELnet/minecraft/util/profiler/DummyProfiler;INSTANCE:Lnet/minecraft/util/profiler/DummyProfiler;
-
-
方法详细资料
-
startTick
public void startTick()
-
endTick
public void endTick()
-
push
public void push(String location)
-
pop
public void pop()
-
swap
public void swap(String location)
-
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 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;
-
-