[python-chinese] 如何用PYTHON来监测linux的内存使用情况,谢谢
Brightman
fenyon在126.com
星期三 十一月 8 20:02:49 HKT 2006
import pyprocps
pinfo = pyprocps.pidinfo(int(pid))
res = "vsize:%.1f rss:%.1f" % (float(pinfo.vsize)/(1<<20), float(pinfo.rss)/(1<<8))ÄãËÑË÷Ò»ÏÂpyprocps
Brightman
2006-11-08
·¢¼þÈË£º lu_zi_2000
·¢ËÍʱ¼ä£º 2006-11-08 18:33:36
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³ËÍ£º
Ö÷Ì⣺ Re: [python-chinese]ÈçºÎÓãУ٣ԣȣϣÎÀ´¼à²âlinuxµÄÄÚ´æÊ¹ÓÃÇé¿ö£¬Ð»Ð»
ÎÒÏë¿´Ò»¸ö½ø³ÌµÄÄÚ´æÊ¹ÓÃÇé¿ö
lu_zi_2000
2006-11-08
·¢¼þÈË£º Öì־ΰ
·¢ËÍʱ¼ä£º 2006-11-08 18:30:40
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³ËÍ£º
Ö÷Ì⣺ Re: [python-chinese]ÈçºÎÓãУ٣ԣȣϣÎÀ´¼à²âlinuxµÄÄÚ´æÊ¹ÓÃÇé¿ö£¬Ð»Ð»
¶ÁÈ¡procÖеÄÎļþÊÇ·ñ¿ÉÒÔ½â¾öÄãµÄÎÊÌâ?
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061108/bcae7f76/attachment.htm
关于邮件列表 python-chinese 的更多信息