FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Gc layout renderer · NLog/NLog Wiki · GitHub

/ NLog Public
Rolf Kristensen edited this page Aug 16, 2026 · 8 revisions

The information about the garbage collector.

Platforms Supported: All

Configuration Syntax

${gc:property=Enum}

Parameters

Rendering Options

  • property - Property to retrieve. Default: TotalMemory
    Possible values:

    • CollectionCount0 - The number of Gen0 collections.
    • CollectionCount1 - The number of Gen1 collections.
    • CollectionCount2 - The number of Gen2 collections.
    • MaxGeneration - Maximum generation number supported by GC.
    • TotalMemory - Managed heap size in bytes (ignoring memory fragmentation).
    • TotalMemoryForceCollection - Managed heap size in bytes (after having forced full garbage collection)

      Marked obsolete with NLog v6.2 since method is not recommended, because of the application wide side-effects.

    • WorkingSet - Physical memory used by the process both managed and unmanaged/native memory.

      Introduced with NLog v6.2

  • Format - The ToString(...) format-specifier. Ex. "N0" to output 1000-delimiter for easier on the eye.

    Introduced with NLog v6.2

Wiki pages Pages 295

Clone this wiki locally


Back | FazBrowse Home | New Git URL