IDkmManagedHeapSampler.InitializeHeapObjectWalk Method

Definition

Initializes heap sampler.

public:
 void InitializeHeapObjectWalk(Microsoft::VisualStudio::Debugger::Clr::DkmManagedHeapSampler ^ managedHeapSampler, System::UInt32 targetObjectCount, bool liveObjectStatsOnly);
public void InitializeHeapObjectWalk (Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler managedHeapSampler, uint targetObjectCount, bool liveObjectStatsOnly);
abstract member InitializeHeapObjectWalk : Microsoft.VisualStudio.Debugger.Clr.DkmManagedHeapSampler * uint32 * bool -> unit
Public Sub InitializeHeapObjectWalk (managedHeapSampler As DkmManagedHeapSampler, targetObjectCount As UInteger, liveObjectStatsOnly As Boolean)

Parameters

managedHeapSampler
DkmManagedHeapSampler

[In] DkmManagedHeapSampler represents a sampler for objects in the managed heap.

targetObjectCount
UInt32

[In] The number of sampled objects to return.

liveObjectStatsOnly
Boolean

[In] Whether the sampler should calculate stats for only the live objects on the heap.

Exceptions

E_MANAGED_HEAP_NOT_ENUMERABLE indicates that the managed heap is not a state that can be enumerated.

Applies to