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 TypeMethodDescriptionvoid
endTick()
Called at the bottom of the main loop.void
pop()
The profile stack is popped.void
The profile stack is pushed with thelocation
as its top.void
reset()
Reset logger.void
save()
Write profile data to a file.void
Called at the top of the main loop.
-
Field Details
-
INSTANCE
The sole instance ofEmptyProfiler
.
-
-
Method Details
-
save
public void save()Description copied from interface:Profiler
Write profile data to a file. -
startTick
public void startTick()Description copied from interface:Profiler
Called 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:Profiler
Called 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:Profiler
The profile stack is pushed with thelocation
as its top. Must be accompanied by a call topop
. -
pop
public void pop()Description copied from interface:Profiler
The profile stack is popped. Must be preceded (at some point) by a call topush
. -
reset
public void reset()Description copied from interface:Profiler
Reset logger.
-