Skip to content

FrameSummary

namespace Griff.Runtime;
public sealed class FrameSummary

How a stretch of frames went: how many, the frame rate and its 1% low (the rate of the slowest 1% of frames), the average and worst frame, and what the game’s steps, building and drawing took on average; then the garbage a frame made on average (in bytes), the most one made, and how many times the garbage collector ran in all.

public double Allocated { get; init; }
public double AverageMs { get; init; }
public double BuildMs { get; init; }
public int Collections { get; init; }
public double DrawMs { get; init; }
public double Draws { get; init; }
public double Fps { get; init; }
public int Frames { get; init; }
public string Garbage { get; }

The garbage a frame made on average, e.g. “0 B”, “12.5 KB” or “1.2 MB”.

public double LowFps { get; init; }
public long MostAllocated { get; init; }
public double StepMs { get; init; }
public double Steps { get; init; }
public double WorstMs { get; init; }
public void Deconstruct(out int Frames, out double Fps, out double LowFps, out double AverageMs, out double WorstMs, out double StepMs, out double BuildMs, out double DrawMs, out double Steps, out double Draws, out double Allocated, out long MostAllocated, out int Collections)
public override bool Equals(object? obj)
public bool Equals(FrameSummary? other)
public override int GetHashCode()
public override string ToString()
public static readonly FrameSummary None