C# Class CsDebugScript.CLR.Heap

CLR code Heap is a abstraction for the whole GC Heap. This is valid only if there is CLR loaded into debugging process.
Show file Open project: southpolenator/WinDbgCs

Private Properties

Property Type Description
Heap System.Collections.Generic

Public Methods

Method Description
EnumerateObjects ( ) : IEnumerable

Enumerates all objects on the heap.

GetSizeByGeneration ( int generation ) : ulong

Get the size by generation 0, 1, 2, 3. The large object heap is Gen 3 here. The sum of all of these should add up to the TotalHeapSize.

Private Methods

Method Description
Heap ( Runtime runtime, Microsoft clrHeap ) : System.Collections.Generic

Initializes a new instance of the Heap class.

Method Details

EnumerateObjects() public method

Enumerates all objects on the heap.
public EnumerateObjects ( ) : IEnumerable
return IEnumerable

GetSizeByGeneration() public method

Get the size by generation 0, 1, 2, 3. The large object heap is Gen 3 here. The sum of all of these should add up to the TotalHeapSize.
public GetSizeByGeneration ( int generation ) : ulong
generation int The generation.
return ulong