GetPid() public static method

public static GetPid ( ) : int
return int
Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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;
        }