Add Garbage Collector helper in debug to aid in memory troubleshooting

This commit is contained in:
John Lewin 2018-06-22 16:39:15 -07:00
parent 8e65b34d8b
commit 1707f95a52

View file

@ -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()
{