Table of Contents

Class HitchRecorder

Namespace
LansMap.Diagnostics
public sealed class HitchRecorder
Inheritance
object
HitchRecorder

Constructors

HitchRecorder()

public HitchRecorder()

HitchRecorder(int, float, float, float)

public HitchRecorder(int capacity, float floorMilliseconds, float typicalFrameMultiple, float typicalStepFraction)

Parameters

capacity int
floorMilliseconds float
typicalFrameMultiple float
typicalStepFraction float

Fields

DefaultCapacity

public const int DefaultCapacity = 16

Field Value

int

DefaultFloorMs

public const float DefaultFloorMs = 40

Field Value

float

DefaultTypicalMultiple

public const float DefaultTypicalMultiple = 3

Field Value

float

DefaultTypicalStepFraction

public const float DefaultTypicalStepFraction = 0.02

Field Value

float

Properties

Capacity

public int Capacity { get; }

Property Value

int

StoredCount

public int StoredCount { get; }

Property Value

int

ThresholdMs

public float ThresholdMs { get; }

Property Value

float

TotalHitchCount

public int TotalHitchCount { get; }

Property Value

int

TypicalFrameMs

public float TypicalFrameMs { get; }

Property Value

float

Methods

At(int)

public HitchSample At(int indexFromNewest)

Parameters

indexFromNewest int

Returns

HitchSample

Observe(float, double, double, double, double, int, int, int, int)

public void Observe(float frameMs, double uploadMsTotal, double decodeMsTotal, double sarIngestMsTotal, double sarGrowMsTotal, int decodesTotal, int sarResizesTotal, int gcCollectionsTotal, int reanchorsTotal)

Parameters

frameMs float
uploadMsTotal double
decodeMsTotal double
sarIngestMsTotal double
sarGrowMsTotal double
decodesTotal int
sarResizesTotal int
gcCollectionsTotal int
reanchorsTotal int

Reset()

public void Reset()

TryGetLast(out HitchSample)

public bool TryGetLast(out HitchSample sample)

Parameters

sample HitchSample

Returns

bool

TryGetWorst(out HitchSample)

public bool TryGetWorst(out HitchSample sample)

Parameters

sample HitchSample

Returns

bool