Table of Contents

Constructor EdgeResourceSnapshot

Namespace
Qavren.Edge.Onnx
Assembly
Qavren.Edge.Onnx.dll

EdgeResourceSnapshot(long?, bool?, EdgeThermalState, float?, bool?, EdgeMemoryPressure?)

One reading. Every nullable member means UNKNOWN, never "no". AvailableMemoryBytes null on a desktop where GC.GetGCMemoryInfo() reports nothing usable is not a refusal, and the session host's memory pre-flight is required to skip its check rather than fail it.

public EdgeResourceSnapshot(long? AvailableMemoryBytes, bool? IsLowMemory, EdgeThermalState Thermal, float? ThermalHeadroom, bool? IsLowPowerMode, EdgeMemoryPressure? LastPressure)

Parameters

AvailableMemoryBytes long?

Free memory the process may still take, or null if unknown.

IsLowMemory bool?

Whether the OS considers itself low on memory, or null if unknown.

Thermal EdgeThermalState

The thermal state; Unknown on desktop.

ThermalHeadroom float?

Android's GetThermalHeadroom(10), or null.

IsLowPowerMode bool?

Apple's low-power-mode flag, or null.

LastPressure EdgeMemoryPressure?

The latched value of LastPressure.