From: "Irfan Habib" <irfan.habib@gmail.com>
To: "Chris Wedgwood" <cw@f00f.org>, linux-kernel@vger.kernel.org
Subject: Re: How to find the CPU usage of a process
Date: Mon, 20 Feb 2006 05:42:13 +0500 [thread overview]
Message-ID: <3420082f0602191642s4e18f32auddcc3b45a449e774@mail.gmail.com> (raw)
In-Reply-To: <20060219190640.GA4929@taniwha.stupidest.org>
thank you very much for every one who replied.
It really helped me big times :)
On 2/20/06, Chris Wedgwood <cw@f00f.org> wrote:
> On Sat, Feb 18, 2006 at 09:42:29AM -0800, Irfan Habib wrote:
>
> > I wanted to ask how can I find the cpu usage of a process, as
> > opposed to runtime, with cpu usage I mean actually how many time
> > slices were awarded to a specific process, like the runtime of job
> > may be 4 s, but this also includes time it was suspended by some
> > interrupt, or had to wait for the scheduler etc..
>
> getrusage(2) or if it's not a child then grovel through /proc (i think
> there is an argument for a better interface)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
next prev parent reply other threads:[~2006-02-20 0:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-18 17:42 Irfan Habib
2006-02-19 19:06 ` Chris Wedgwood
2006-02-20 0:42 ` Irfan Habib [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-02-18 17:42 Irfan Habib
2006-02-18 18:44 ` Bernd Eckenfels
2006-02-18 18:55 ` Ulrich Drepper
2006-02-18 19:27 ` Bernd Eckenfels
2006-02-18 20:15 ` Ulrich Drepper
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=3420082f0602191642s4e18f32auddcc3b45a449e774@mail.gmail.com \
--to=irfan.habib@gmail.com \
--cc=cw@f00f.org \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®