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); }
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)); }
static extern bool mono_debugger_libgtop_glue_get_memory(int pid, ref LibGTopGlueMemoryInfo info);