Struct FrameStats
- Namespace
- MiniTui
- Assembly
- MiniTui.dll
One frame's numbers (1.x spec §9.4).
public readonly record struct FrameStats : IEquatable<FrameStats>
- Implements
- Inherited Members
Constructors
FrameStats(long, TimeSpan, TimeSpan, int, long?, bool)
One frame's numbers (1.x spec §9.4).
public FrameStats(long Frame, TimeSpan RenderTime, TimeSpan FlushTime, int CellsChanged, long? BytesWritten, bool FullRedraw)
Parameters
FramelongThe frame's number: 1 for the first frame drawn by this run.
RenderTimeTimeSpanDrawing the frame (the render callback or screen, overlays and toasts), without the debug overlay.
FlushTimeTimeSpanComparing the buffers and the backend writing the changes.
CellsChangedintThe cells sent to the backend; every cell on a full redraw.
BytesWrittenlong?The bytes written to the terminal, or null on backends that don't write bytes (conhost, tests).
FullRedrawboolTrue if the frame redrew the whole screen.
Properties
BytesWritten
The bytes written to the terminal, or null on backends that don't write bytes (conhost, tests).
public long? BytesWritten { get; init; }
Property Value
- long?
CellsChanged
The cells sent to the backend; every cell on a full redraw.
public int CellsChanged { get; init; }
Property Value
FlushTime
Comparing the buffers and the backend writing the changes.
public TimeSpan FlushTime { get; init; }
Property Value
Frame
The frame's number: 1 for the first frame drawn by this run.
public long Frame { get; init; }
Property Value
FullRedraw
True if the frame redrew the whole screen.
public bool FullRedraw { get; init; }
Property Value
RenderTime
Drawing the frame (the render callback or screen, overlays and toasts), without the debug overlay.
public TimeSpan RenderTime { get; init; }