Share 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: See .NET Framework System Requirements.

Header: GCHost.idl, GCHost.h

Library: Included as a resource in MSCorEE.dll

.NET Framework Versions: 4, 3.5 SP1, 3.5, 3.0 SP1, 3.0, 2.0 SP1, 2.0

See Also

Reference

IGCHost Interface