c#获取当前进程使用内存

 

 

        public static string GetMemory()
        {
            Process proc = Process.GetCurrentProcess();
            long b = proc.PrivateMemorySize64;
            for (int i = 0; i < 2; i++)
            {
                b /= 1024;
            }
            return b + "MB";
        }

上一篇:C++-线程同步基础之条件变量


下一篇:Believing Process 最长回文子串