Results 1 to 1 of 1
Dec 15, 2011, 06:42 #1
- Join Date
- Dec 2011
- 0 Post(s)
- 0 Thread(s)
I have created a profiler as a part of a framework I am developing.
The profiler, when enabled, works by intercepting include calls and modifying/patching functions present in the included files on the fly to adds calls to the profiler class methods to log data required for profiling.
Please note that actual files are untouched. Just when they are included , this class stands in between php and the file so that php will see the patched version of the file , while
the actual file is untouched .
Is this a bad thing, or a bad idea? I mean to patch code on the fly. Can you think of any cases where this would not work?
And Are there any profilers that I can use without adding extra profiling code, other than Xdebug?