PHP resource usage logging extension
C Shell PHP
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
analysis
dev-scripts
tests
tmp/test
CHANGES
README
TODO
config.m4
php_rsclog-auto_prepend.php
php_rsclog.c
php_rsclog.h
rsclog.c
rsclog.h

README

========================
  RSCLOG PHP extension
========================



--------------------------------------------------------------------------------
1. General notes

This is Linux-only extension (for now), uses /proc filesystem to read process
specific data. CPU usage is reported in units of jiffies(j) which differ from
machine to machine.

This extension is not thread safe and should not be used in such scenarios. It
relies on /proc/PID/stat file to gather process-specific information and is thus
process-oriented and not thread-oriented.



--------------------------------------------------------------------------------
2. Install it as normal PHP extension:

  phpize
  ./configure --enable-rsclog
  make
  make install



--------------------------------------------------------------------------------
3. Add this to php.ini:

  extension=rsclog.so



--------------------------------------------------------------------------------
4. Find interesting data in the output of your syslog daemon, usually located
in /var/log.