[xdebug-general] Re: Problem profiling PHP function and class definitions...

From: Derick Rethans <derick[@]xdebug.org>
Date: Thu, 20 Apr 2006 16:31:17 +0200 (CEST)

On Thu, 20 Apr 2006, Gustav Bertram wrote:

> I'm using xdebug to profile my php application, and I noticed something odd
> in the "self" times of some of my scripts. It turns out that when file A
> does a require_once() on a file B that contains only function and class
> definitions, that the time spent loading the function and class definitions
> is not added to the self time of file B, but to the self time of file *A*.
>
> Now this is understandable if the classes are only actually loaded in script
> A and not in script B. But there's more.
>
> In my setup, script A loads script B. Script B loads script C. Script C has
> class and function definitions. The time spent in C is added to B's self
> time, not A's self time!
>
> Is there something about the class loading of PHP that I don't understand?

Not necessarily, it might just be a bug. It would greatly help me if you
could send me a zip/tar file with the three classes A, B and C from your
description above and then file a bugreport with this zip file as
attachment to http://bugs.xdebug.org . I'll have a look at it then and I
won't forget about it either.

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Thu Apr 20 2006 - 16:32:28 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST