Add Garbage Collector helper in debug to aid in memory troubleshooting
This commit is contained in:
parent
8e65b34d8b
commit
1707f95a52
1 changed files with 13 additions and 0 deletions
|
|
@ -596,6 +596,19 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
|
|||
});
|
||||
}
|
||||
},
|
||||
#if DEBUG
|
||||
new NamedAction()
|
||||
{
|
||||
Title = "GC.Collect".Localize(),
|
||||
Action = () =>
|
||||
{
|
||||
UiThread.RunOnIdle(() =>
|
||||
{
|
||||
GC.Collect();
|
||||
});
|
||||
}
|
||||
},
|
||||
#endif
|
||||
new NamedAction() { Title = "----" },
|
||||
new NamedAction()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue