C# Class HeapProfiler.MainWindow

Inheritance: TaskForm
Datei anzeigen Open project: kg/HeapProfiler Class Usage Examples

Public Properties

Property Type Description
Instance HeapProfiler.HeapRecording

Protected Properties

Property Type Description
AutoCaptureFuture IFuture
CurrentFilter string
CurrentFilterData FilteredHeapSnapshotInfo>.Dictionary
KnownFunctionNames HashSet
PendingFilterFuture IFuture
WasMinimized bool

Public Methods

Method Description
EscapeFilter ( string filter ) : string
FilterToRegex ( string rawFilter, bool compiled = false ) : Regex
FormatCount ( long count ) : string
FormatPercentage ( long percentage ) : string
FormatSizeBytes ( long bytes ) : string
GetAllocationCount ( HeapSnapshotInfo item ) : long
GetAverageFreeHeapBlockSize ( HeapSnapshotInfo item ) : long
GetAverageOccupiedHeapBlockSize ( HeapSnapshotInfo item ) : long
GetBytesAllocated ( HeapSnapshotInfo item ) : long
GetBytesOverhead ( HeapSnapshotInfo item ) : long
GetBytesTotal ( HeapSnapshotInfo item ) : long
GetHeapFragmentation ( HeapSnapshotInfo item ) : long
GetLargestFreeHeapBlock ( HeapSnapshotInfo item ) : long
GetLargestOccupiedHeapBlock ( HeapSnapshotInfo item ) : long
GetPagedMemory ( HeapSnapshotInfo item ) : long
GetVirtualMemory ( HeapSnapshotInfo item ) : long
GetWorkingSet ( HeapSnapshotInfo item ) : long
MainWindow ( TaskScheduler scheduler ) : System
OpenRecording ( string filename ) : void
OpenSnapshots ( IEnumerable filenames ) : void

Protected Methods

Method Description
AutoCaptureTask ( ) : IEnumerator
ChooseName ( IBoundMember bm ) : string
Dispose ( bool disposing ) : void

Clean up any resources being used.

FilterHeapData ( HeapProfiler.HeapRecording instance, string filter ) : IEnumerator
LoadPersistedValues ( ) : void
RefreshFunctionNames ( HeapProfiler.HeapRecording instance ) : IEnumerator
SavePersistedValues ( ) : void
ShowDiff ( int index1, int index2 ) : void
SubscribeToEvents ( HeapProfiler.HeapRecording instance ) : void
UpdateErrorCount ( object sender, EventArgs e ) : void
UpdateStats ( ) : IEnumerator

Private Methods

Method Description
Activities_PreferredSizeChanged ( object sender, EventArgs e ) : void
AssociateDiffsMenu_Click ( object sender, EventArgs e ) : void
AssociateRecordingsMenu_Click ( object sender, EventArgs e ) : void
AssociateSnapshotsMenu_Click ( object sender, EventArgs e ) : void
AutoCapture_CheckedChanged ( object sender, EventArgs e ) : void
CaptureSnapshot_Click ( object sender, EventArgs e ) : void
DiffSelection_Click ( object sender, EventArgs e ) : void
DisposeInstance ( ) : void
ErrorDialogMenu_Click ( object sender, EventArgs e ) : void
ExecutablePath_DragDrop ( object sender, DragEventArgs e ) : void
ExecutablePath_DragOver ( object sender, DragEventArgs e ) : void
ExecutablePath_TextChanged ( object sender, EventArgs e ) : void
ExitMenu_Click ( object sender, EventArgs e ) : void
HeapFilter_FilterChanged ( object sender, EventArgs e ) : void
HeapFilter_FilterChanging ( object sender, FilterChangingEventArgs args ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

LaunchProcess_Click ( object sender, EventArgs e ) : void
MainWindow_DragDrop ( object sender, DragEventArgs e ) : void
MainWindow_DragOver ( object sender, DragEventArgs e ) : void
MainWindow_FormClosed ( object sender, System.Windows.Forms.FormClosedEventArgs e ) : void
MainWindow_FormClosing ( object sender, FormClosingEventArgs e ) : void
MainWindow_SizeChanged ( object sender, EventArgs e ) : void
OpenFilesMenu_Click ( object sender, EventArgs e ) : void
OpenSnapshotsMenu_Click ( object sender, EventArgs e ) : void
OptionsMenu_DropDownOpening ( object sender, EventArgs e ) : void
RefreshLaunchEnabled ( ) : void
RefreshSnapshots ( ) : void
RefreshStatus ( ) : void
SaveAllSnapshots_Click ( object sender, EventArgs e ) : void
SaveAsMenu_Click ( object sender, EventArgs e ) : void
SaveInstanceAs ( string targetFilename ) : IEnumerator
SelectExecutable_Click ( object sender, EventArgs e ) : void
SelectWorkingDirectory_Click ( object sender, EventArgs e ) : void
SnapshotTimeline_ItemValueGetterChanged ( object sender, EventArgs e ) : void
SnapshotTimeline_SelectionChanged ( object sender, EventArgs e ) : void
StackFiltersMenu_Click ( object sender, EventArgs e ) : void
SymbolPathMenu_Click ( object sender, EventArgs e ) : void
ViewAllocationCountMenu_Click ( object sender, EventArgs e ) : void
ViewAverageFreeBlockSizeMenu_Click ( object sender, EventArgs e ) : void
ViewAverageHeapBlockSizeMenu_Click ( object sender, EventArgs e ) : void
ViewBytesAllocatedMenu_Click ( object sender, EventArgs e ) : void
ViewBytesAllocatedPlusOverheadMenu_Click ( object sender, EventArgs e ) : void
ViewBytesOverheadMenu_Click ( object sender, EventArgs e ) : void
ViewHeapFragmentationMenu_Click ( object sender, EventArgs e ) : void
ViewLargestFreeHeapMenu_Click ( object sender, EventArgs e ) : void
ViewLargestOccupiedHeapMenu_Click ( object sender, EventArgs e ) : void
ViewPagedMemoryMenu_Click ( object sender, EventArgs e ) : void
ViewSelection_Click ( object sender, EventArgs e ) : void
ViewVirtualMemoryMenu_Click ( object sender, EventArgs e ) : void
ViewWorkingSetMenu_Click ( object sender, EventArgs e ) : void
WorkingDirectory_DragDrop ( object sender, DragEventArgs e ) : void
WorkingDirectory_DragOver ( object sender, DragEventArgs e ) : void

Method Details

AutoCaptureTask() protected method

protected AutoCaptureTask ( ) : IEnumerator
return IEnumerator

ChooseName() protected method

protected ChooseName ( IBoundMember bm ) : string
bm IBoundMember
return string

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

EscapeFilter() public static method

public static EscapeFilter ( string filter ) : string
filter string
return string

FilterHeapData() protected method

protected FilterHeapData ( HeapProfiler.HeapRecording instance, string filter ) : IEnumerator
instance HeapProfiler.HeapRecording
filter string
return IEnumerator

FilterToRegex() public static method

public static FilterToRegex ( string rawFilter, bool compiled = false ) : Regex
rawFilter string
compiled bool
return System.Text.RegularExpressions.Regex

FormatCount() public static method

public static FormatCount ( long count ) : string
count long
return string

FormatPercentage() public static method

public static FormatPercentage ( long percentage ) : string
percentage long
return string

FormatSizeBytes() public static method

public static FormatSizeBytes ( long bytes ) : string
bytes long
return string

GetAllocationCount() public method

public GetAllocationCount ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetAverageFreeHeapBlockSize() public static method

public static GetAverageFreeHeapBlockSize ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetAverageOccupiedHeapBlockSize() public static method

public static GetAverageOccupiedHeapBlockSize ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetBytesAllocated() public method

public GetBytesAllocated ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetBytesOverhead() public method

public GetBytesOverhead ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetBytesTotal() public method

public GetBytesTotal ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetHeapFragmentation() public static method

public static GetHeapFragmentation ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetLargestFreeHeapBlock() public static method

public static GetLargestFreeHeapBlock ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetLargestOccupiedHeapBlock() public static method

public static GetLargestOccupiedHeapBlock ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetPagedMemory() public static method

public static GetPagedMemory ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetVirtualMemory() public static method

public static GetVirtualMemory ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

GetWorkingSet() public static method

public static GetWorkingSet ( HeapSnapshotInfo item ) : long
item HeapSnapshotInfo
return long

LoadPersistedValues() protected method

protected LoadPersistedValues ( ) : void
return void

MainWindow() public method

public MainWindow ( TaskScheduler scheduler ) : System
scheduler TaskScheduler
return System

OpenRecording() public method

public OpenRecording ( string filename ) : void
filename string
return void

OpenSnapshots() public method

public OpenSnapshots ( IEnumerable filenames ) : void
filenames IEnumerable
return void

RefreshFunctionNames() protected method

protected RefreshFunctionNames ( HeapProfiler.HeapRecording instance ) : IEnumerator
instance HeapProfiler.HeapRecording
return IEnumerator

SavePersistedValues() protected method

protected SavePersistedValues ( ) : void
return void

ShowDiff() protected method

protected ShowDiff ( int index1, int index2 ) : void
index1 int
index2 int
return void

SubscribeToEvents() protected method

protected SubscribeToEvents ( HeapProfiler.HeapRecording instance ) : void
instance HeapProfiler.HeapRecording
return void

UpdateErrorCount() protected method

protected UpdateErrorCount ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void

UpdateStats() protected method

protected UpdateStats ( ) : IEnumerator
return IEnumerator

Property Details

AutoCaptureFuture protected_oe property

protected IFuture AutoCaptureFuture
return IFuture

CurrentFilter protected_oe property

protected string CurrentFilter
return string

CurrentFilterData protected_oe property

protected Dictionary CurrentFilterData
return FilteredHeapSnapshotInfo>.Dictionary

Instance public_oe property

public HeapRecording,HeapProfiler Instance
return HeapProfiler.HeapRecording

KnownFunctionNames protected_oe property

protected HashSet KnownFunctionNames
return HashSet

PendingFilterFuture protected_oe property

protected IFuture PendingFilterFuture
return IFuture

WasMinimized protected_oe property

protected bool WasMinimized
return bool