Lire en anglais Modifier

Partager via


GC.GetGCMemoryInfo Method

Definition

Overloads

GetGCMemoryInfo()

Gets garbage collection memory information.

GetGCMemoryInfo(GCKind)

Gets garbage collection memory information.

GetGCMemoryInfo()

Source:
GC.CoreCLR.cs
Source:
GC.CoreCLR.cs
Source:
GC.CoreCLR.cs

Gets garbage collection memory information.

C#
public static GCMemoryInfo GetGCMemoryInfo();

Returns

An object that contains information about the garbage collector's memory usage.

Applies to

.NET 10 et autres versions
Produit Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

GetGCMemoryInfo(GCKind)

Source:
GC.CoreCLR.cs
Source:
GC.CoreCLR.cs
Source:
GC.CoreCLR.cs

Gets garbage collection memory information.

C#
public static GCMemoryInfo GetGCMemoryInfo(GCKind kind);

Parameters

kind
GCKind

The kind of collection for which to retrieve memory information.

Returns

An object that contains information about the garbage collector's memory usage.

Applies to

.NET 10 et autres versions
Produit Versions
.NET 5, 6, 7, 8, 9, 10