Class DebugRecorder

java.lang.Object
net.minecraft.client.util.profiler.DebugRecorder
All Implemented Interfaces:
Recorder

@Environment(CLIENT) public class DebugRecorder extends Object implements Recorder
Mappings:
Namespace Name
official elb
intermediary net/minecraft/class_5961
named net/minecraft/client/util/profiler/DebugRecorder
  • Field Details

    • field_32676

      public static final int field_32676
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Lelb;a:I
      intermediary field_32676 Lnet/minecraft/class_5961;field_32676:I
      named field_32676 Lnet/minecraft/client/util/profiler/DebugRecorder;field_32676:I
    • globalPathConsumer

      @Nullable private static @Nullable Consumer<Path> globalPathConsumer
      Mappings:
      Namespace Name Mixin selector
      official b Lelb;b:Ljava/util/function/Consumer;
      intermediary field_29579 Lnet/minecraft/class_5961;field_29579:Ljava/util/function/Consumer;
      named globalPathConsumer Lnet/minecraft/client/util/profiler/DebugRecorder;globalPathConsumer:Ljava/util/function/Consumer;
    • categories

      private final List<Category> categories
      Mappings:
      Namespace Name Mixin selector
      official c Lelb;c:Ljava/util/List;
      intermediary field_29580 Lnet/minecraft/class_5961;field_29580:Ljava/util/List;
      named categories Lnet/minecraft/client/util/profiler/DebugRecorder;categories:Ljava/util/List;
    • timeTracker

      private final TickTimeTracker timeTracker
      Mappings:
      Namespace Name Mixin selector
      official d Lelb;d:Lapg;
      intermediary field_29581 Lnet/minecraft/class_5961;field_29581:Lnet/minecraft/class_4757;
      named timeTracker Lnet/minecraft/client/util/profiler/DebugRecorder;timeTracker:Lnet/minecraft/util/profiler/TickTimeTracker;
    • executor

      private final Executor executor
      Mappings:
      Namespace Name Mixin selector
      official e Lelb;e:Ljava/util/concurrent/Executor;
      intermediary field_29582 Lnet/minecraft/class_5961;field_29582:Ljava/util/concurrent/Executor;
      named executor Lnet/minecraft/client/util/profiler/DebugRecorder;executor:Ljava/util/concurrent/Executor;
    • dumper

      private final ProfilerDumper dumper
      Mappings:
      Namespace Name Mixin selector
      official f Lelb;f:Lelk;
      intermediary field_29583 Lnet/minecraft/class_5961;field_29583:Lnet/minecraft/class_5971;
      named dumper Lnet/minecraft/client/util/profiler/DebugRecorder;dumper:Lnet/minecraft/client/util/profiler/ProfilerDumper;
    • readAction

      private final Runnable readAction
      Mappings:
      Namespace Name Mixin selector
      official g Lelb;g:Ljava/lang/Runnable;
      intermediary field_29584 Lnet/minecraft/class_5961;field_29584:Ljava/lang/Runnable;
      named readAction Lnet/minecraft/client/util/profiler/DebugRecorder;readAction:Ljava/lang/Runnable;
    • pathConsumer

      private final Consumer<Path> pathConsumer
      Mappings:
      Namespace Name Mixin selector
      official h Lelb;h:Ljava/util/function/Consumer;
      intermediary field_29585 Lnet/minecraft/class_5961;field_29585:Ljava/util/function/Consumer;
      named pathConsumer Lnet/minecraft/client/util/profiler/DebugRecorder;pathConsumer:Ljava/util/function/Consumer;
    • timeGetter

      private final LongSupplier timeGetter
      Mappings:
      Namespace Name Mixin selector
      official i Lelb;i:Ljava/util/function/LongSupplier;
      intermediary field_29586 Lnet/minecraft/class_5961;field_29586:Ljava/util/function/LongSupplier;
      named timeGetter Lnet/minecraft/client/util/profiler/DebugRecorder;timeGetter:Ljava/util/function/LongSupplier;
    • samples

      private final List<Sample> samples
      Mappings:
      Namespace Name Mixin selector
      official j Lelb;j:Ljava/util/List;
      intermediary field_29587 Lnet/minecraft/class_5961;field_29587:Ljava/util/List;
      named samples Lnet/minecraft/client/util/profiler/DebugRecorder;samples:Ljava/util/List;
    • nanoStartTime

      private final long nanoStartTime
      Mappings:
      Namespace Name Mixin selector
      official k Lelb;k:J
      intermediary field_29588 Lnet/minecraft/class_5961;field_29588:J
      named nanoStartTime Lnet/minecraft/client/util/profiler/DebugRecorder;nanoStartTime:J
    • ticks

      private int ticks
      Mappings:
      Namespace Name Mixin selector
      official l Lelb;l:I
      intermediary field_29589 Lnet/minecraft/class_5961;field_29589:I
      named ticks Lnet/minecraft/client/util/profiler/DebugRecorder;ticks:I
    • profiler

      private ReadableProfiler profiler
      Mappings:
      Namespace Name Mixin selector
      official m Lelb;m:Lapk;
      intermediary field_29590 Lnet/minecraft/class_5961;field_29590:Lnet/minecraft/class_3693;
      named profiler Lnet/minecraft/client/util/profiler/DebugRecorder;profiler:Lnet/minecraft/util/profiler/ReadableProfiler;
    • pendingRead

      private volatile boolean pendingRead
      Mappings:
      Namespace Name Mixin selector
      official n Lelb;n:Z
      intermediary field_29591 Lnet/minecraft/class_5961;field_29591:Z
      named pendingRead Lnet/minecraft/client/util/profiler/DebugRecorder;pendingRead:Z
  • Constructor Details

    • DebugRecorder

      private DebugRecorder(LongSupplier timeGetter, Executor executor, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lelb;<init>(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lelk;Ljava/lang/Runnable;Ljava/util/function/Consumer;)V
      intermediary <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;)V
      named <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
  • Method Details

    • create

      public static DebugRecorder create(LongSupplier timeGetter, Executor executore, ProfilerDumper dumper, Runnable readAction, Consumer<Path> completeAction)
      Mappings:
      Namespace Name Mixin selector
      official a Lelb;a(Ljava/util/function/LongSupplier;Ljava/util/concurrent/Executor;Lelk;Ljava/lang/Runnable;Ljava/util/function/Consumer;)Lelb;
      intermediary method_34760 Lnet/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 create Lnet/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 f Lelb;f()V
      intermediary method_34761 Lnet/minecraft/class_5961;method_34761()V
      named createCategories Lnet/minecraft/client/util/profiler/DebugRecorder;createCategories()V
    • createFactory

      private SamplerFactory createFactory(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lelb;a(Ljava/lang/String;)Lelh;
      intermediary method_34758 Lnet/minecraft/class_5961;method_34758(Ljava/lang/String;)Lnet/minecraft/class_5970;
      named createFactory Lnet/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 a Lelb;a(Ljava/util/function/LongSupplier;)Lelf;
      intermediary method_34759 Lnet/minecraft/class_5961;method_34759(Ljava/util/function/LongSupplier;)Lnet/minecraft/class_5965;
      named createFrameTimeSampler Lnet/minecraft/client/util/profiler/DebugRecorder;createFrameTimeSampler(Ljava/util/function/LongSupplier;)Lnet/minecraft/client/util/profiler/SamplingRecorder;
    • sample

      public void sample()
      Specified by:
      sample in interface Recorder
      Mappings:
      Namespace Name Mixin selector
      official a Lelc;a()V
      intermediary method_34770 Lnet/minecraft/class_5962;method_34770()V
      named sample Lnet/minecraft/client/util/profiler/Recorder;sample()V
    • start

      public void start()
      Specified by:
      start in interface Recorder
      Mappings:
      Namespace Name Mixin selector
      official b Lelc;b()V
      intermediary method_34771 Lnet/minecraft/class_5962;method_34771()V
      named start Lnet/minecraft/client/util/profiler/Recorder;start()V
    • read

      public void read()
      Specified by:
      read in interface Recorder
      Mappings:
      Namespace Name Mixin selector
      official c Lelc;c()V
      intermediary method_34772 Lnet/minecraft/class_5962;method_34772()V
      named read Lnet/minecraft/client/util/profiler/Recorder;read()V
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Recorder
      Mappings:
      Namespace Name Mixin selector
      official d Lelc;d()Z
      intermediary method_34773 Lnet/minecraft/class_5962;method_34773()Z
      named isActive Lnet/minecraft/client/util/profiler/Recorder;isActive()Z
    • getProfiler

      public Profiler getProfiler()
      Specified by:
      getProfiler in interface Recorder
      Mappings:
      Namespace Name Mixin selector
      official e Lelc;e()Lapm;
      intermediary method_34774 Lnet/minecraft/class_5962;method_34774()Lnet/minecraft/class_3695;
      named getProfiler Lnet/minecraft/client/util/profiler/Recorder;getProfiler()Lnet/minecraft/util/profiler/Profiler;
    • checkState

      private void checkState()
      Mappings:
      Namespace Name Mixin selector
      official g Lelb;g()V
      intermediary method_34762 Lnet/minecraft/class_5961;method_34762()V
      named checkState Lnet/minecraft/client/util/profiler/DebugRecorder;checkState()V
    • execute

      private void execute()
      Mappings:
      Namespace Name Mixin selector
      official h Lelb;h()V
      intermediary method_34763 Lnet/minecraft/class_5961;method_34763()V
      named execute Lnet/minecraft/client/util/profiler/DebugRecorder;execute()V
    • method_35762

      public static void method_35762(Consumer<Path> consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lelb;a(Ljava/util/function/Consumer;)V
      intermediary method_35762 Lnet/minecraft/class_5961;method_35762(Ljava/util/function/Consumer;)V
      named method_35762 Lnet/minecraft/client/util/profiler/DebugRecorder;method_35762(Ljava/util/function/Consumer;)V