Skip to content

PerfEntry

Namespace Nfty.Core.Diagnostics in assembly Nfty.Core.

public readonly struct PerfEntry : IEquatable<PerfEntry>

One measured scope's running totals.

Constructors

PerfEntry(string, long, double, double, long)

public PerfEntry(string Name, long Calls, double TotalMs, double MaxMs, long AllocatedBytes);

Parameters

  • Name (string) - What was measured.
  • Calls (long) - How many times it ran.
  • TotalMs (double) - Wall-clock time across every call.
  • MaxMs (double) - The slowest single call — the number a user actually feels.
  • AllocatedBytes (long) - Managed bytes allocated inside the scope, summed.

Properties

AllocatedBytes

public long AllocatedBytes { get; init; }

Managed bytes allocated inside the scope, summed.

Calls

public long Calls { get; init; }

How many times it ran.

MaxMs

public double MaxMs { get; init; }

The slowest single call — the number a user actually feels.

MeanMs

public double MeanMs { get; }

Mean time per call.

Name

public string Name { get; init; }

What was measured.

TotalMs

public double TotalMs { get; init; }

Wall-clock time across every call.