[DllImport("psapi.dll")]
private static extern int EmptyWorkingSet(int hProcess);

GC.Collect();
GC.WaitForPendingFinalizers();
EmptyWorkingSet(Process.GetCurrentProcess().Handle.ToInt32());

效果十分的显著

 

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2021-12-16
  • 2022-01-25
  • 2022-12-23
  • 2021-12-13
  • 2021-12-13
  • 2021-12-13
猜你喜欢
  • 2021-09-12
  • 2021-06-02
  • 2022-01-30
  • 2021-09-02
  • 2021-12-22
  • 2021-11-17
相关资源
相似解决方案