- GetPerformanceInfo(ref pi, pi.cb);
- Int64 CommitAvailable = pi.CommitLimit.ToInt64() - pi.CommitTotal.ToInt64();
- Int64 PhysicalUsed = pi.PhysicalTotal.ToInt64() - pi.PhysicalAvailable.ToInt64();
- Int64 PageFileTotal = pi.CommitLimit.ToInt64() - pi.PhysicalTotal.ToInt64();
- Console.WriteLine("Commit Max: {0}", pi.CommitLimit);
- Console.WriteLine("Commit Avail: {0}", CommitAvailable);
- Console.WriteLine("Commit Used: {0}", pi.CommitTotal);
- Console.WriteLine();
- Console.WriteLine("Physical Max: {0}", pi.PhysicalTotal);
- Console.WriteLine("Physical Avail: {0}", pi.PhysicalAvailable);
- Console.WriteLine("Physical Used: {0}", PhysicalUsed);
- Console.WriteLine();
- Console.WriteLine("Pagefile Max: {0}", PageFileTotal);
- Console.WriteLine("Pagefile Avail: {0}", pi.CommitTotal.ToInt64() - PhysicalUsed);
- Console.WriteLine("Pagefile Used: {0}", PageFileTotal - (pi.CommitTotal.ToInt64() - PhysicalUsed));
Performance Info
Posted by Anonymous on Wed 28th Dec 2011 21:46
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
kpaste.net RSS