Process proc = Process.GetCurrentProcess();
                Console.Write("专用工作集内存:");
                Console.WriteLine(proc.PrivateMemorySize64 / 1024);
                Console.Write("工作集内存:");
                Console.WriteLine(proc.WorkingSet64 / 1024.0);
                Console.Write("最大内存:");
                Console.WriteLine(proc.PeakWorkingSet64 / 1024.0);
                Console.Write("线程数:");
                Console.WriteLine(proc.Threads.Count);

相关文章:

  • 2021-07-09
  • 2022-12-23
  • 2021-10-28
  • 2021-07-31
  • 2021-06-08
  • 2021-08-31
  • 2021-07-04
猜你喜欢
  • 2022-12-23
  • 2021-05-31
  • 2022-02-10
  • 2021-11-03
  • 2022-12-23
  • 2021-12-18
  • 2021-08-19
相关资源
相似解决方案