接口 Profiler
-
- 所有已知子接口:
ReadableProfiler
- 所有已知实现类:
DummyProfiler,ProfilerSystem
public interface Profiler- Mappings:
Namespace Name official aplintermediary net/minecraft/class_3695named net/minecraft/util/profiler/Profiler
-
-
字段概要
字段 修饰符和类型 字段 说明 static Stringfield_29925
-
方法概要
所有方法 静态方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidendTick()voidpop()voidpush(String location)voidpush(Supplier<String> locationGetter)voidstartTick()voidswap(String location)voidswap(Supplier<String> locationGetter)static Profilerunion(Profiler profiler, Profiler profiler2)voidvisit(String marker)Increment the visit count for a marker.voidvisit(Supplier<String> markerGetter)Increment the visit count for a marker.
-
-
-
字段详细资料
-
field_29925
static final String field_29925
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLapl;b:Ljava/lang/String;intermediary field_29925Lnet/minecraft/class_3695;field_29925:Ljava/lang/String;named field_29925Lnet/minecraft/util/profiler/Profiler;field_29925:Ljava/lang/String;
-
-
方法详细资料
-
startTick
void startTick()
- Mappings:
Namespace Name Mixin selector official aLapl;a()Vintermediary method_16065Lnet/minecraft/class_3695;method_16065()Vnamed startTickLnet/minecraft/util/profiler/Profiler;startTick()V
-
endTick
void endTick()
- Mappings:
Namespace Name Mixin selector official bLapl;b()Vintermediary method_16066Lnet/minecraft/class_3695;method_16066()Vnamed endTickLnet/minecraft/util/profiler/Profiler;endTick()V
-
push
void push(String location)
- Mappings:
Namespace Name Mixin selector official aLapl;a(Ljava/lang/String;)Vintermediary method_15396Lnet/minecraft/class_3695;method_15396(Ljava/lang/String;)Vnamed pushLnet/minecraft/util/profiler/Profiler;push(Ljava/lang/String;)V
-
push
void push(Supplier<String> locationGetter)
- Mappings:
Namespace Name Mixin selector official aLapl;a(Ljava/util/function/Supplier;)Vintermediary method_15400Lnet/minecraft/class_3695;method_15400(Ljava/util/function/Supplier;)Vnamed pushLnet/minecraft/util/profiler/Profiler;push(Ljava/util/function/Supplier;)V
-
pop
void pop()
- Mappings:
Namespace Name Mixin selector official cLapl;c()Vintermediary method_15407Lnet/minecraft/class_3695;method_15407()Vnamed popLnet/minecraft/util/profiler/Profiler;pop()V
-
swap
void swap(String location)
- Mappings:
Namespace Name Mixin selector official bLapl;b(Ljava/lang/String;)Vintermediary method_15405Lnet/minecraft/class_3695;method_15405(Ljava/lang/String;)Vnamed swapLnet/minecraft/util/profiler/Profiler;swap(Ljava/lang/String;)V
-
swap
void swap(Supplier<String> locationGetter)
- Mappings:
Namespace Name Mixin selector official bLapl;b(Ljava/util/function/Supplier;)Vintermediary method_15403Lnet/minecraft/class_3695;method_15403(Ljava/util/function/Supplier;)Vnamed swapLnet/minecraft/util/profiler/Profiler;swap(Ljava/util/function/Supplier;)V
-
visit
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.
- 参数:
marker- a unique marker- Mappings:
Namespace Name Mixin selector official cLapl;c(Ljava/lang/String;)Vintermediary method_24270Lnet/minecraft/class_3695;method_24270(Ljava/lang/String;)Vnamed visitLnet/minecraft/util/profiler/Profiler;visit(Ljava/lang/String;)V
-
visit
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.
- 参数:
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
-
union
static Profiler union(Profiler profiler, Profiler profiler2)
- Mappings:
Namespace Name Mixin selector official aLapl;a(Lapl;Lapl;)Lapl;intermediary method_24338Lnet/minecraft/class_3695;method_24338(Lnet/minecraft/class_3695;Lnet/minecraft/class_3695;)Lnet/minecraft/class_3695;named unionLnet/minecraft/util/profiler/Profiler;union(Lnet/minecraft/util/profiler/Profiler;Lnet/minecraft/util/profiler/Profiler;)Lnet/minecraft/util/profiler/Profiler;
-
-