Califa PHP Profiler
|
|
What is?
Califa PHP Profiler is a very simple profiler that I developed to trace the functions time exectuions
and how many time their was called.
At this moment it only works with PHP 3.0.16 version.
|
|
How it works?
Califa PHP Profiler logs all the information decribed above into a file called
/tmp/report.log.
|
|
How do I install it?
Califa PHP Profiler is embebed into PHP code, so you only have to install it like PHP favorite installation.
|
|
How is /tmp/report.log file?
Here you can see an exaple data generated by Califa:
PHP Code
function DoAnything() {
for ($i=0;$i < 100; $i++)
for ($j=0;$j<100;$j++)
$k=0;
}
function Add ($x,$y) {
return $x+$y;
}
function WaitOneMoment($secs) {
sleep($secs);
}
$a=3;
$b=4;
$c = Add ($a,$b);
echo "$a + $b = $c\n";
echo "Calling DoAnything ...\n";
DoAnything();
echo "Now I'm going to sleep ... ZZzzz\n";
WaitOneMoment (2);
echo "That's all folks, bye!\n";
/tmp/report.log
Califa PHP Profiler 0.9 Beta
-- USER FUNCTIONS ---------------------------------------------------------
Function: "DoAnything"
Number of calls released: 1
Last user time used: 0 secs (130000 usecs)
Total user time used: 0 secs (130000 usecs)
Last system time used: 0 secs (0 usecs)
Total system time used: 0 secs (0 usecs)
Function: "Add"
Number of calls released: 1
Last user time used: 0 secs (0 usecs)
Total user time used: 0 secs (0 usecs)
Last system time used: 0 secs (0 usecs)
Total system time used: 0 secs (0 usecs)
Function: "WaitOneMoment"
Number of calls released: 1
Last user time used: 0 secs (0 usecs)
Total user time used: 0 secs (0 usecs)
Last system time used: 0 secs (0 usecs)
Total system time used: 0 secs (0 usecs)
-- INTERNAL FUNCTIONS ---------------------------------------------------------
Function: "sleep"
Number of calls released: 2
Last user time used: 0 secs (0 usecs)
Total user time used: 0 secs (0 usecs)
Last system time used: 0 secs (0 usecs)
Total system time used: 0 secs (0 usecs)
|
|
I want this!!!
The last version of Califa PHP Profiler is Califa PHP Profiler 0.9.1
(it's a PreRelease version because I can't test it on all plataforms :( so if you have some crash running it please let me know.), or
just visit me at SourceForge.
|
|
How can I contact with you?
If you have comments, doubts, bug reports, etc ... you can contact me at alexmartin@dr.com.
|