Package frc.lib.profiling
Class EmptyProfiler
java.lang.Object
frc.lib.profiling.EmptyProfiler
- All Implemented Interfaces:
Profiler
This logger explicitly does nothing. Because there is no variance in doing nothing, a single
instance is provided as
INSTANCE.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidendTick()Called at the bottom of the main loop.voidpop()The profile stack is popped.voidThe profile stack is pushed with thelocationas its top.voidreset()Reset logger.voidsave()Write profile data to a file.voidCalled at the top of the main loop.
-
Field Details
-
INSTANCE
The sole instance ofEmptyProfiler.
-
-
Method Details
-
save
public void save()Description copied from interface:ProfilerWrite profile data to a file. -
startTick
public void startTick()Description copied from interface:ProfilerCalled at the top of the main loop. Indicates the profiler is at "root" and records the start time. Within the main loop, no meaningful work should occur before this call. -
endTick
public void endTick()Description copied from interface:ProfilerCalled at the bottom of the main loop. Indicates the profiler's "root" is finished, and its time usage metrics are updated. Within the main loop, no meaningful work should occur after this call. -
push
Description copied from interface:ProfilerThe profile stack is pushed with thelocationas its top. Must be accompanied by a call topop. -
pop
public void pop()Description copied from interface:ProfilerThe profile stack is popped. Must be preceded (at some point) by a call topush. -
reset
public void reset()Description copied from interface:ProfilerReset logger.
-