Limiting deep for profiling |
|
Ok, for the first point (knowing which line of the main script is calling the consuming line), I can do this way :
- putting a breakpoint on the consuming line - running debug session and run to cursor (F4) - then looking at the call stack Any idea for the second point ? |
||||||||||||
|
Site Admin
|
1. you can EXCLUDE (see Minus button) the line from the results 2. you can switch betwenn 3 modes of the profiler: [M] - modules, [L] - lines, and [F] functions. If you check [M] modules, you'll see your module with its functions and lines inside. |
||||||||||||||
_________________ The PHP IDE team |
|
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 :
When excluding the "sleep(1000);" Line, I should obtain a thing like :
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 :
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. |
||||||||||||||||||
|
Limiting deep for profiling |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by