API

GC.GetAllocatedBytesForCurrentThread

Measures cumulative managed allocation on the current thread; use a delta for a window.

Formal Syntax & Structure

csharp syntaxcsharp
GC.GetAllocatedBytesForCurrentThread() - before

Working Example

Example Snippetcsharp
// Documentary fragment; see linked lesson for context.GC.GetAllocatedBytesForCurrentThread() - before
C# & .NET Reference