类 DebugRecorder
- java.lang.Object
-
- net.minecraft.client.util.profiler.DebugRecorder
-
- 所有已实现的接口:
Recorder
@Environment(CLIENT) public class DebugRecorder extends Object implements Recorder
- Mappings:
Namespace Name official elaintermediary net/minecraft/class_5961named net/minecraft/client/util/profiler/DebugRecorder
-
-
字段概要
字段 修饰符和类型 字段 说明 private List<Category>categoriesprivate ProfilerDumperdumperprivate Executorexecutorstatic intfield_32676private static @Nullable Consumer<Path>globalPathConsumerprivate longnanoStartTimeprivate Consumer<Path>pathConsumerprivate booleanpendingReadprivate ReadableProfilerprofilerprivate RunnablereadActionprivate List<Sample>samplesprivate intticksprivate LongSuppliertimeGetterprivate TickTimeTrackertimeTracker
-
构造器概要
构造器 限定符 构造器 说明 privateDebugRecorder(LongSupplier timeGetter, Executor executor, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 private voidcheckState()static DebugRecordercreate(LongSupplier timeGetter, Executor executore, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)private voidcreateCategories()private SamplerFactorycreateFactory(String name)private SamplingRecordercreateFrameTimeSampler(LongSupplier timeGetter)private voidexecute()ProfilergetProfiler()booleanisActive()static voidmethod_35762(Consumer<Path> consumer)voidread()voidsample()voidstart()
-
-
-
字段详细资料
-
field_32676
public static final int field_32676
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLela;a:Iintermediary field_32676Lnet/minecraft/class_5961;field_32676:Inamed field_32676Lnet/minecraft/client/util/profiler/DebugRecorder;field_32676:I
-
globalPathConsumer
@Nullable private static @Nullable Consumer<Path> globalPathConsumer
- Mappings:
Namespace Name Mixin selector official bLela;b:Ljava/util/function/Consumer;intermediary field_29579Lnet/minecraft/class_5961;field_29579:Ljava/util/function/Consumer;named globalPathConsumerLnet/minecraft/client/util/profiler/DebugRecorder;globalPathConsumer:Ljava/util/function/Consumer;
-
categories
private final List<Category> categories
- Mappings:
Namespace Name Mixin selector official cLela;c:Ljava/util/List;intermediary field_29580Lnet/minecraft/class_5961;field_29580:Ljava/util/List;named categoriesLnet/minecraft/client/util/profiler/DebugRecorder;categories:Ljava/util/List;
-
timeTracker
private final TickTimeTracker timeTracker
- Mappings:
Namespace Name Mixin selector official dLela;d:Lapf;intermediary field_29581Lnet/minecraft/class_5961;field_29581:Lnet/minecraft/class_4757;named timeTrackerLnet/minecraft/client/util/profiler/DebugRecorder;timeTracker:Lnet/minecraft/util/profiler/TickTimeTracker;
-
executor
private final Executor executor
- Mappings:
Namespace Name Mixin selector official eLela;e:Ljava/util/concurrent/Executor;intermediary field_29582Lnet/minecraft/class_5961;field_29582:Ljava/util/concurrent/Executor;named executorLnet/minecraft/client/util/profiler/DebugRecorder;executor:Ljava/util/concurrent/Executor;
-
dumper
private final ProfilerDumper dumper
- Mappings:
Namespace Name Mixin selector official fLela;f:Lelj;intermediary field_29583Lnet/minecraft/class_5961;field_29583:Lnet/minecraft/class_5971;named dumperLnet/minecraft/client/util/profiler/DebugRecorder;dumper:Lnet/minecraft/client/util/profiler/ProfilerDumper;
-
readAction
private final Runnable readAction
- Mappings:
Namespace Name Mixin selector official gLela;g:Ljava/lang/Runnable;intermediary field_29584Lnet/minecraft/class_5961;field_29584:Ljava/lang/Runnable;named readActionLnet/minecraft/client/util/profiler/DebugRecorder;readAction:Ljava/lang/Runnable;
-
pathConsumer
private final Consumer<Path> pathConsumer
- Mappings:
Namespace Name Mixin selector official hLela;h:Ljava/util/function/Consumer;intermediary field_29585Lnet/minecraft/class_5961;field_29585:Ljava/util/function/Consumer;named pathConsumerLnet/minecraft/client/util/profiler/DebugRecorder;pathConsumer:Ljava/util/function/Consumer;
-
timeGetter
private final LongSupplier timeGetter
- Mappings:
Namespace Name Mixin selector official iLela;i:Ljava/util/function/LongSupplier;intermediary field_29586Lnet/minecraft/class_5961;field_29586:Ljava/util/function/LongSupplier;named timeGetterLnet/minecraft/client/util/profiler/DebugRecorder;timeGetter:Ljava/util/function/LongSupplier;
-
samples
private final List<Sample> samples
- Mappings:
Namespace Name Mixin selector official jLela;j:Ljava/util/List;intermediary field_29587Lnet/minecraft/class_5961;field_29587:Ljava/util/List;named samplesLnet/minecraft/client/util/profiler/DebugRecorder;samples:Ljava/util/List;
-
nanoStartTime
private final long nanoStartTime
- Mappings:
Namespace Name Mixin selector official kLela;k:Jintermediary field_29588Lnet/minecraft/class_5961;field_29588:Jnamed nanoStartTimeLnet/minecraft/client/util/profiler/DebugRecorder;nanoStartTime:J
-
ticks
private int ticks
- Mappings:
Namespace Name Mixin selector official lLela;l:Iintermediary field_29589Lnet/minecraft/class_5961;field_29589:Inamed ticksLnet/minecraft/client/util/profiler/DebugRecorder;ticks:I
-
profiler
private ReadableProfiler profiler
- Mappings:
Namespace Name Mixin selector official mLela;m:Lapj;intermediary field_29590Lnet/minecraft/class_5961;field_29590:Lnet/minecraft/class_3693;named profilerLnet/minecraft/client/util/profiler/DebugRecorder;profiler:Lnet/minecraft/util/profiler/ReadableProfiler;
-
pendingRead
private volatile boolean pendingRead
- Mappings:
Namespace Name Mixin selector official nLela;n:Zintermediary field_29591Lnet/minecraft/class_5961;field_29591:Znamed pendingReadLnet/minecraft/client/util/profiler/DebugRecorder;pendingRead:Z
-
-
构造器详细资料
-
DebugRecorder
private DebugRecorder(LongSupplier timeGetter, Executor executor, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)
- Mappings:
Namespace Name Mixin selector official <init>Lela;<init>(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lelj;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Vintermediary <init>Lnet/minecraft/class_5961;<init>(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lnet/minecraft/class_5971;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Vnamed <init>Lnet/minecraft/client/util/profiler/DebugRecorder;<init>(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lnet/minecraft/client/util/profiler/ProfilerDumper;Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
-
-
方法详细资料
-
create
public static DebugRecorder create(LongSupplier timeGetter, Executor executore, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)
- Mappings:
Namespace Name Mixin selector official aLela;a(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lelj;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Lela;intermediary method_34760Lnet/minecraft/class_5961;method_34760(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lnet/minecraft/class_5971;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Lnet/minecraft/class_5961;named createLnet/minecraft/client/util/profiler/DebugRecorder;create(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lnet/minecraft/client/util/profiler/ProfilerDumper;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Lnet/minecraft/client/util/profiler/DebugRecorder;
-
createCategories
private void createCategories()
- Mappings:
Namespace Name Mixin selector official fLela;f()Vintermediary method_34761Lnet/minecraft/class_5961;method_34761()Vnamed createCategoriesLnet/minecraft/client/util/profiler/DebugRecorder;createCategories()V
-
createFactory
private SamplerFactory createFactory(String name)
- Mappings:
Namespace Name Mixin selector official aLela;a(Ljava/lang/String;)Lelg;intermediary method_34758Lnet/minecraft/class_5961;method_34758(Ljava/lang/String;)Lnet/minecraft/class_5970;named createFactoryLnet/minecraft/client/util/profiler/DebugRecorder;createFactory(Ljava/lang/String;)Lnet/minecraft/client/util/profiler/SamplerFactory;
-
createFrameTimeSampler
private SamplingRecorder createFrameTimeSampler(LongSupplier timeGetter)
- Mappings:
Namespace Name Mixin selector official aLela;a(Ljava/util/function/LongSupplier;)Lele;intermediary method_34759Lnet/minecraft/class_5961;method_34759(Ljava/util/function/LongSupplier;)Lnet/minecraft/class_5965;named createFrameTimeSamplerLnet/minecraft/client/util/profiler/DebugRecorder;createFrameTimeSampler(Ljava/util/function/LongSupplier;)Lnet/minecraft/client/util/profiler/SamplingRecorder;
-
sample
public void sample()
-
start
public void start()
-
read
public void read()
-
isActive
public boolean isActive()
-
getProfiler
public Profiler getProfiler()
- 指定者:
getProfiler在接口中Recorder- Mappings:
Namespace Name Mixin selector official eLelb;e()Lapl;intermediary method_34774Lnet/minecraft/class_5962;method_34774()Lnet/minecraft/class_3695;named getProfilerLnet/minecraft/client/util/profiler/Recorder;getProfiler()Lnet/minecraft/util/profiler/Profiler;
-
checkState
private void checkState()
- Mappings:
Namespace Name Mixin selector official gLela;g()Vintermediary method_34762Lnet/minecraft/class_5961;method_34762()Vnamed checkStateLnet/minecraft/client/util/profiler/DebugRecorder;checkState()V
-
execute
private void execute()
- Mappings:
Namespace Name Mixin selector official hLela;h()Vintermediary method_34763Lnet/minecraft/class_5961;method_34763()Vnamed executeLnet/minecraft/client/util/profiler/DebugRecorder;execute()V
-
method_35762
public static void method_35762(Consumer<Path> consumer)
- Mappings:
Namespace Name Mixin selector official aLela;a(Ljava/util/function/Consumer;)Vintermediary method_35762Lnet/minecraft/class_5961;method_35762(Ljava/util/function/Consumer;)Vnamed method_35762Lnet/minecraft/client/util/profiler/DebugRecorder;method_35762(Ljava/util/function/Consumer;)V
-
-