Re: Accurately measure CPU cycles used by a program? thanks

Zach Brown
2002-04-30T16:30:13Z

> >Is there any package or program, which can be used to accurately measure the
> >CPU cycles used by a program? I think the following code can only provide an
>
> man getrusage

There is a measurable chance that getrusage isn't good enough, something
like perfctr ( http://www.csd.uu.se/~mikpe/linux/perfctr/ ) that
actually measures cpu events may be more insteresting. See also:
http://oprofile.sourceforge.net/

- z