It doesn't make any sense to count as shared each and every mmaped file. Disable that code while we figure how to really do it.

https://bugzilla.gnome.org/show_bug.cgi?id=744890
This commit is contained in:
Benoit Dejean
2015-06-21 10:56:39 +08:00
committed by Ting-Wei Lan
parent c68e077909
commit e6d776ee61
+6
View File
@@ -102,6 +102,11 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->resident = buf->rss = (guint64)
ps_pgtok (pinfo [0].ki_rssize) * 1024;
#if 0
/*
* It doesn't make any sense to count as shared each and every mmaped file
*/
/* Now we get the shared memory. */
if (kvm_read (server->machine.kd,
@@ -157,4 +162,5 @@ glibtop_get_proc_mem_p (glibtop *server, glibtop_proc_mem *buf,
buf->flags = _glibtop_sysdeps_proc_mem |
_glibtop_sysdeps_proc_mem_share;
#endif
}