1

I'm creating an automatic mechanism to turn all methods of classes to "private". Then I will add a __call method, to track down the callings. The only problem is how to do this without spoiling other strings, comments etc.

7
  • 5
    Why would you want to do that? Commented Feb 5, 2014 at 16:02
  • 1
    Google "PHP refactoring". Commented Feb 5, 2014 at 16:03
  • I want to track down all method callings, examine their running time, memory etc Commented Feb 5, 2014 at 16:05
  • 5
    What's wrong with using the xdebug extension for such things? Commented Feb 5, 2014 at 16:07
  • 2
    @JohnSmith It is an extension that you install and then enable. See the installation instructions. Commented Feb 5, 2014 at 16:20

1 Answer 1

1

I want to track down all method callings, examine their running time, memory etc

There are already tools for that, search for php profiling, I could recommend xhprof.

If for some reason you don't want to use these, try Reflection

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.