Profiling/APD April 2004

From Meta, a Wikimedia project coordination wiki

Quick test of APD, the "Advanced PHP Debugger", which is really a profiler.

This install isn't set up with a PHP cache, so inclusion is weighted down by parsing every page. I'm not too sure why some of the fields in the report come up blank...

Trace for /Users/brion/Sites/rel1.3/index.php
Total Elapsed Time =    2.07
Total System Time  =    0.22
Total User Time    =    0.60


         Real         User        System             secs/    cumm
%Time (excl/cumm)  (excl/cumm)  (excl/cumm) Calls    call    s/call  Memory Usage Name
--------------------------------------------------------------------------------------
 29.3  0.73  1.30   0.18  0.31   0.06  0.19    47   0.0000    0.0000            0 include_once
  8.5  0.03  0.03   0.06  0.06   0.01  0.01   208   0.0000    0.0000            0 str_replace
  8.5  0.22  0.22   0.03  0.03   0.04  0.04   123   0.0000    0.0000            0 define
  6.1  0.06  0.32   0.02  0.03   0.03  0.07    20   0.0000    0.0000            0 require_once
  3.7  0.02  0.02   0.03  0.03   0.00  0.00   475   0.0000    0.0000            0 is_object
  3.7  0.02  0.02   0.01  0.01   0.02  0.02     4   0.0000    0.0000            0 fakememcachedclient->get
  2.4  0.03  0.17   0.02  0.02   0.00  0.00   262   0.0000    0.0000            0 preg_replace
  2.4  0.01  0.01   0.01  0.01   0.01  0.01   110   0.0000    0.0000            0 magicword->addtoarray
  2.4  0.34  0.34   0.02  0.02   0.00  0.00   508   0.0000    0.0000            0 array_key_exists
  2.4  0.03  0.03   0.00  0.00   0.02  0.02    11   0.0000    0.0000            0 function_exists
  2.4  0.00  0.00   0.01  0.01   0.01  0.01   129   0.0000    0.0000            0 array_shift
  2.4  0.00  0.28   0.02  0.02   0.00  0.00    68   0.0000    0.0000            0 languageeo->getmessage
  2.4  0.05  0.12   0.02  0.04   0.00  0.02     2   0.0000    0.0000            0 include
  1.2  0.00  0.00   0.01  0.01   0.00  0.00     4   0.0000    0.0000            0 debug_backtrace
  1.2  0.01  0.01   0.01  0.01   0.00  0.00     3   0.0000    0.0000            0 ucfirst
  1.2  0.14  0.14   0.01  0.01   0.00  0.00    43   0.0000    0.0000            0 strtr
  1.2  0.00  0.02   0.01  0.02   0.00  0.01    93   0.0000    0.0000            0 phptal_path_explode
  1.2  0.00  0.02   0.01  0.04   0.00  0.00   197   0.0000    0.0000            0 phptal_outputcontrol->writestructure
  1.2  0.02  0.02   0.01  0.01   0.00  0.00    44   0.0000    0.0000            0 languageeo->getnstext
  1.2  0.00  0.00   0.01  0.01   0.00  0.00    27   0.0000    0.0000            0 strcmp