Package net.minecraft.util.profiler
Class DummyProfiler
java.lang.Object
net.minecraft.util.profiler.DummyProfiler
- All Implemented Interfaces:
Profiler
,ReadableProfiler
public class DummyProfiler extends Object implements ReadableProfiler
- Mappings:
Namespace Name official aop
intermediary net/minecraft/class_3694
named net/minecraft/util/profiler/DummyProfiler
-
Field Summary
Fields Modifier and Type Field Description static DummyProfiler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
DummyProfiler()
-
Method Summary
Modifier and Type Method Description void
endTick()
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
-
INSTANCE
- Mappings:
Namespace Name Mixin selector official a
Laop;a:Laop;
intermediary field_16280
Lnet/minecraft/class_3694;field_16280:Lnet/minecraft/class_3694;
named INSTANCE
Lnet/minecraft/util/profiler/DummyProfiler;INSTANCE:Lnet/minecraft/util/profiler/DummyProfiler;
-
-
Constructor Details
-
DummyProfiler
private DummyProfiler()
-
-
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
-
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;
-