Partilhar via


IGCHost::GetStats Method

Gets the statistics for the current state of the garbage collection system.

HRESULT GetStats (
        [in, out] COR_GC_STATS *pStats
);

Parameters

  • pStats
    [in, out] A pointer to a COR_GC_STATS structure that contains the statistics for the current state of the garbage collection system.

Remarks

The statistics can be used by a smart allocation system to help the garbage collection system operate. For example, the allocation system may determine, after reviewing the statistics, that it needs to add more memory or force a collection.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: GCHost.idl

Library: Included as a resource in MSCorEE.dll

.NET Framework Version: 2.0

See Also

Concepts

IGCHost Interface