Esempio n. 1
0
        public static MemoryInfo GetMemoryInfo(int pid)
        {
            LibGTopGlueMemoryInfo info = new LibGTopGlueMemoryInfo ();
            if (!mono_debugger_libgtop_glue_get_memory (pid, ref info))
                throw new TargetException (
                    TargetError.IOError, "Cannot get memory info for process %d",
                    pid);

            return new MemoryInfo (
                info.size, info.vsize / 1024,
                info.resident, info.share, info.rss);
        }
Esempio n. 2
0
        public static MemoryInfo GetMemoryInfo(int pid)
        {
            LibGTopGlueMemoryInfo info = new LibGTopGlueMemoryInfo();

            if (!mono_debugger_libgtop_glue_get_memory(pid, ref info))
            {
                throw new TargetException(
                          TargetError.IOError, "Cannot get memory info for process %d",
                          pid);
            }

            return(new MemoryInfo(
                       info.size, info.vsize / 1024,
                       info.resident, info.share, info.rss));
        }
Esempio n. 3
0
 static extern bool mono_debugger_libgtop_glue_get_memory(int pid, ref LibGTopGlueMemoryInfo info);
Esempio n. 4
0
 static extern bool mono_debugger_libgtop_glue_get_memory(int pid, ref LibGTopGlueMemoryInfo info);