Table of Contents

Interface IMemorySink

Namespace
PopcorningGuineaPig.Engine.Diagnostics
Assembly
PopcorningGuineaPig.Engine.dll

Receives MemorySnapshot values produced by a MemoryProfiler. Implement to fan out snapshots to disk, in-memory buffers, or custom transports.

public interface IMemorySink

Remarks

Implementations MUST be thread-safe — StartPeriodicSampling(int, IMemorySink, CancellationToken) invokes Receive(MemorySnapshot) from a background thread.

Methods

Receive(MemorySnapshot)

Hand a snapshot to the sink. Should not throw under normal conditions.

void Receive(MemorySnapshot snapshot)

Parameters

snapshot MemorySnapshot