Table of Contents

Class MemorySnapshot

Namespace
AiDotNet.Diagnostics
Assembly
AiDotNet.dll

A snapshot of memory usage at a point in time.

public class MemorySnapshot
Inheritance
MemorySnapshot
Inherited Members

Properties

FinalizationPendingCount

public long FinalizationPendingCount { get; init; }

Property Value

long

FragmentedBytes

public long FragmentedBytes { get; init; }

Property Value

long

Gen0Collections

public int Gen0Collections { get; init; }

Property Value

int

Gen1Collections

public int Gen1Collections { get; init; }

Property Value

int

Gen2Collections

public int Gen2Collections { get; init; }

Property Value

int

HeapSizeBytes

public long HeapSizeBytes { get; init; }

Property Value

long

Label

public required string Label { get; init; }

Property Value

string

PinnedObjectsCount

public long PinnedObjectsCount { get; init; }

Property Value

long

PrivateMemory

public long PrivateMemory { get; init; }

Property Value

long

PromotedBytes

public long PromotedBytes { get; init; }

Property Value

long

Timestamp

public DateTime Timestamp { get; init; }

Property Value

DateTime

TotalMemory

public long TotalMemory { get; init; }

Property Value

long

VirtualMemory

public long VirtualMemory { get; init; }

Property Value

long

WorkingSet

public long WorkingSet { get; init; }

Property Value

long

Methods

CompareTo(MemorySnapshot)

Compares this snapshot with another.

public MemoryDiff CompareTo(MemorySnapshot baseline)

Parameters

baseline MemorySnapshot

Returns

MemoryDiff

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.