I created a module,
http://paste.org/pastebin/view/18743
apxs2 -c -i mod_foo.c
LoadModule myhits_module /usr/lib/apache2/modules/mod_foo.so
LogFormat "%{cpu}n" rusage
CustomLog /tmp/access.log rusage
The problem is when I run this http://paste.org/pastebin/view/18744 script the
first time,
the values are equal to 0, but must be like this
#php php.php > /dev/null; time
shell 0.52s user 0.10s system 0% cpu 150:48:31.83 total
children 87.95s user 25.02s system 0% cpu 150:48:31.83 total
The following requests of the script shows the correct conclusion cpu.
Why in the first time, cpu equal 0, how to fix it?
On Tue, May 18, 2010 at 06:07:48PM +0300, F10 wrote:
> Hello list
> I am writing a module that would be logged cpu time and memory usage for each
> query to the vhost.
> Need help how to implement it.
> --
> Only one 0_o
>
>
--
Only one 0_o