Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


GCMemoryInfo.MemoryLoadBytes Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the physical memory load when the last garbage collection occurred.

public long MemoryLoadBytes { get; }

Property Value

The physical memory load, in bytes, when the last garbage collection occurred.

Remarks

On Windows, memory load is a field in the MEMORYSTATUS structure. It's a number between 0 and 100 that specifies the approximate percentage of physical memory that's in use (0 indicates no memory use and 100 indicates full memory use). Corresponding information is given on other operating systems.

Data is only brought into physical memory on first touch. If you allocated a big object but haven't actually used it, most of its memory isn't in physical memory. In this case, the allocation won't affect the memory load significantly.

Applies to

Προϊόν Εκδόσεις
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10