public string PrintMemoryInfo() { int pid = LibGTop.GetPid(); int files = LibGTop.GetOpenFiles(pid); LibGTop.MemoryInfo info = LibGTop.GetMemoryInfo(pid); return(String.Format("size = {0,5} vsize = {1,7} resident = {2,5} " + "share = {3,5} rss = {4,5} files = {5,2}", info.Size, info.VirtualSize, info.Resident, info.Share, info.RSS, files)); }
static DebuggerTestFixture() { stderr = new StreamWriter(Console.OpenStandardError()); stderr.AutoFlush = true; if (Verbose) { stderr.WriteLine("PID IS {0}", LibGTop.GetPid()); } Report.Initialize(); Report.ReportWriter.PrintToConsole = false; }