Profiling Code |
Site Admin
|
hmm, profiler was added in 2001, when I joined the team.
While this is realated to performance measurement, it has nothing to do with profiler. Absolutely. The main profiler task is to answer the question "how fast your code works" regardless of the context. What you're trying to do is to find an answer to the question like "how fast your database works" depending on the query. At least it's a task for samplers or loggers. |
||||||||||||||||
_________________ The PHP IDE team |
|
I still have my CD copy of PhpEd 3.3 sitting here, released 3/15/2004 (not even the first release I used), and it has no profiler.
No, that's absolutely wrong. What I gave was an example. Your "profiler" can not tell me how fast my code works if it can't tell me how fast the function runs when given different inputs. All it gives is a very flawed average. If I'm trying to identify why the code takes 90 seconds to run when it's called with one set of parameters, and 1 second when called with a different set, the PHPEd profiler does absolutely nothing to assist that; It's just going to say that it took an average of 1.89 seconds, with a maximum of 90. My background before PHP was C and C++. Code profiling is very old-hat in that environment, and any profiler worth its installation footprint will give you a full execution output. It's the *only* way to accurately measure performance because functions can perform very differently given different inputs. |
||||||||||||||||||
|
Site Admin
|
You may think you know it better than me, who implemented the debugger and profiler in phped 3.0. Of course it's there in version 3.3 too. See Tools->Show Profiler.
Ok. There is nothing to dispute over. Php profiler implemented in PhpED is very similar to the profilers that you can find in Borland and Microsoft IDEs. So, it matches the standards, even though it can not help you with profiling mysql queries. |
||||||||||||||||
_________________ The PHP IDE team |
|
Hi dmitri, Hi Signe,
I understand that Dmitri is not very happy about the comment on profiler. But we don't blame you or Nuphere, we blame PHP tools in general (I have a Java background and there profiler give a lot more information). I also agree with Signe. I am also very frustrated about the profiler limitation for the moment. I think that Signe also need a complete call tree with cumulative time like already discuss here at the end of the post : limiting-deep-for-profiling-t5988.html?highlight=profiling to be able to see in his main script which part of it takes a lot of time (not only to see witch line in a subfile is consuming time). |
||||||||||||
|
Profiling Code |
|
||
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