All of lore.kernel.org
 help / color / mirror / Atom feed
From: Llfrg@aol.com
To: linux-c-programming@vger.kernel.org
Subject: Monitoring a program
Date: Mon, 01 Mar 2004 13:22:18 -0500	[thread overview]
Message-ID: <4FEDBC17.643129B5.0000FADF@aol.com> (raw)

Hi,

I would like to monitor a program execution. I intend to have a program (or daemon) that, whenever the target program (whose name is to be passed as a paramenter) starts (i.e when ps -C progname returns any process), gets statistics like cpu usage and store them on a file, finishing when the target program finishes. What would be an efficient way to do that?

Thanks,
Leonardo.

             reply	other threads:[~2004-03-01 18:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 18:22 Llfrg [this message]
2004-03-01 21:38 ` Monitoring a program John T. Williams
2004-03-01 22:50   ` John T. Williams
2004-03-01 22:34 ` Glynn Clements
  -- strict thread matches above, loose matches on Subject: below --
2004-03-02  0:02 Llfrg
     [not found] <183D9E9B.3D6733E9.0000FADF@aol.com>
2004-03-02  2:39 ` John T. Williams
2004-03-02 12:12 Llfrg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FEDBC17.643129B5.0000FADF@aol.com \
    --to=llfrg@aol.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.