MemoryScope

Structs ยท AiDotNet.Diagnostics

A scope that automatically captures before/after memory snapshots.

Inheritance: ValueType โ†’ MemoryScope

Implements: IDisposable

Constructors

Constructor Summary
MemoryScope(string label, ProfilerSession profilerSession) Creates a memory tracking scope.

Properties

Property Summary
MemorySnapshot Before { get; } Gets the before snapshot.

Methods

Method Summary
void Dispose()