GC.GetTotalAllocatedBytes(Boolean) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient le nombre des octets alloués au cours de la durée de vie du processus. La valeur retournée n’inclut aucune allocation native.
public static long GetTotalAllocatedBytes(bool precise = false);
static member GetTotalAllocatedBytes : bool -> int64
Public Shared Function GetTotalAllocatedBytes (Optional precise As Boolean = false) As Long
- precise
- Boolean
Si true
, collectez un nombre précis ; sinon, collectez un nombre approximatif. La collecte d’une valeur précise entraîne une baisse significative des performances.
Nombre total des octets alloués au cours de la durée de vie du processus.
Produit | Versions |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: