Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #44553 > unrolled thread

python process accounting

Started byRita <rmorgan466@gmail.com>
First post2013-04-30 12:25 -0400
Last post2013-04-30 12:25 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  python process accounting Rita <rmorgan466@gmail.com> - 2013-04-30 12:25 -0400

#44553 — python process accounting

FromRita <rmorgan466@gmail.com>
Date2013-04-30 12:25 -0400
Subjectpython process accounting
Message-ID<mailman.1186.1367339150.3114.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

Hi,

I was wondering if it possible to write a python wrapper which will account
my processes. I would like to account for all the children processes (fork)
by looking at their /proc/<pid> info. Such as memory, io, open files,
stats.

So, instead of me running "/bin/sleep 10", i would like to run it as
"pywrap.py /bin/sleep 10" and it will do an exec /bin/sleep 10 and do a
periodic snapshot for whats in /proc/<pid>/stats.




-- 
--- Get your facts first, then you can distort them as you please.--

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web