Hi,
First of all, thank you for your reply. I already use these different modes. But I still need more information.
The exclude function doesn't help me either.
It could have help me a lot if the time of the excluded line was reported at a upper level.
I mean if I have this information :
Line ; Number of call ; Mean Time ; Total Time
"sleep(1000);" ; 100 ; 1 000 ; 100 000
"oneFunction()" ; 10 ; 0.1 ; 1
|
When excluding the "sleep(1000);" Line, I should obtain a thing like :
Line ; Number of call ; Mean Time ; Total Time
"oneFunction()" ; 10 ; 10 000.1 ; 100 001
|
Like this I can see that there's two problems :
- the sleep function take too much time so I can try to optimize it
- the oneFunction is called too many time so I can try to limit the number of call of this function
I think that what I really need is a complete call tree with the cumulated time at each step of the tree.
It might present like this maybe :
Line ; Number of call ; Mean Time ; Total Time ;
+ "oneFunction()" ; 10 ; 10 000.1 ; 100 001
--> "sleep(1000);" ; 10 ; 1 000 ; 10 000
--> "for($j = 0 ; $j < 10 ; $j++){" ; 1 ; 0.1 ; 0.1
|
After searching in the forum, I saw that it was already discussed here :
plans-on-improving-the-profiler-t3801.html?highlight=profiling
In my point of view, even if this profiling is very slow, it might help a lot in profiling phase and will be a real added value for a tool like PHPEd.
In fact, I will be glad to pay the price of one license just for such a functionality.
I am not sure to be clear enough with this very basic example but I can give one more complex if you are not convinced. In real world, there can be more level in calls and the oneFunction() might also be called at different point in the same script so we have to find which call is the guilty one. With cumulated time, we have the answer immediately.