PerformanceMetrics Class#
Core Web Vitals and supplementary performance metrics collected during test execution.
public sealed record PerformanceMetrics : System.IEquatable<Motus.Abstractions.PerformanceMetrics>
Inheritance System.Object → PerformanceMetrics
Implements System.IEquatable<PerformanceMetrics>
Constructors#
PerformanceMetrics(Nullable<double>, Nullable<double>, Nullable<double>, Nullable<double>, Nullable<double>, Nullable<long>, Nullable<int>, IReadOnlyList<LayoutShiftEntry>, DateTime, string) Constructor#
Core Web Vitals and supplementary performance metrics collected during test execution.
public PerformanceMetrics(System.Nullable<double> Lcp, System.Nullable<double> Fcp, System.Nullable<double> Ttfb, System.Nullable<double> Cls, System.Nullable<double> Inp, System.Nullable<long> JsHeapSize, System.Nullable<int> DomNodeCount, System.Collections.Generic.IReadOnlyList<Motus.Abstractions.LayoutShiftEntry> LayoutShifts, System.DateTime CollectedAtUtc, string? DiagnosticMessage=null);
Parameters#
Lcp System.Nullable<System.Double>
Largest Contentful Paint in milliseconds, or null if not yet observed.
Fcp System.Nullable<System.Double>
First Contentful Paint in milliseconds, or null if not yet observed.
Ttfb System.Nullable<System.Double>
Time to First Byte in milliseconds, or null if not available.
Cls System.Nullable<System.Double>
Cumulative Layout Shift score (unitless), or null if not yet observed.
Inp System.Nullable<System.Double>
Interaction to Next Paint in milliseconds, or null if no interactions occurred.
JsHeapSize System.Nullable<System.Int64>
JavaScript heap used size in bytes, or null when unavailable (e.g. BiDi fallback).
DomNodeCount System.Nullable<System.Int32>
Number of DOM nodes, or null when unavailable (e.g. BiDi fallback).
LayoutShifts System.Collections.Generic.IReadOnlyList<LayoutShiftEntry>
Individual layout shift entries observed during the page session.
CollectedAtUtc System.DateTime
UTC timestamp when the metrics were collected.
DiagnosticMessage System.String
Optional message when metrics could not be fully collected (e.g. transport does not support CDP performance domains).
Properties#
Cls Property#
Cumulative Layout Shift score (unitless), or null if not yet observed.
public System.Nullable<double> Cls { get; init; }
Property Value#
System.Nullable<System.Double>
CollectedAtUtc Property#
UTC timestamp when the metrics were collected.
public System.DateTime CollectedAtUtc { get; init; }
Property Value#
DiagnosticMessage Property#
Optional message when metrics could not be fully collected (e.g. transport does not support CDP performance domains).
public string? DiagnosticMessage { get; init; }
Property Value#
DomNodeCount Property#
Number of DOM nodes, or null when unavailable (e.g. BiDi fallback).
public System.Nullable<int> DomNodeCount { get; init; }
Property Value#
Fcp Property#
First Contentful Paint in milliseconds, or null if not yet observed.
public System.Nullable<double> Fcp { get; init; }
Property Value#
System.Nullable<System.Double>
Inp Property#
Interaction to Next Paint in milliseconds, or null if no interactions occurred.
public System.Nullable<double> Inp { get; init; }
Property Value#
System.Nullable<System.Double>
JsHeapSize Property#
JavaScript heap used size in bytes, or null when unavailable (e.g. BiDi fallback).
public System.Nullable<long> JsHeapSize { get; init; }
Property Value#
LayoutShifts Property#
Individual layout shift entries observed during the page session.
public System.Collections.Generic.IReadOnlyList<Motus.Abstractions.LayoutShiftEntry> LayoutShifts { get; init; }
Property Value#
System.Collections.Generic.IReadOnlyList<LayoutShiftEntry>
Lcp Property#
Largest Contentful Paint in milliseconds, or null if not yet observed.
public System.Nullable<double> Lcp { get; init; }
Property Value#
System.Nullable<System.Double>
Ttfb Property#
Time to First Byte in milliseconds, or null if not available.
public System.Nullable<double> Ttfb { get; init; }