Re: Memory statistics



Le lundi 17 avril 2006 à 22:36 -0500, Federico Mena Quintero a écrit :
> Hi,
> 

> Right now it looks at all of your user's pids, parses /proc/<pid>/smaps
> for them, 

import os
import gtop

for pid in gtop.proclist(gtop.PROCLIST_KERN_PROC_UID, os.getuid()):
	gtop.proc_map(<pid>)

ciao :)
-- 
GNOME http://www.gnomefr.org/
LibGTop http://directory.fsf.org/libgtop.html

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]