Don't need accurate, just approximately. Then I can know the performance of this function.
Asked
Active
Viewed 55 times
0
-
and in general: http://stackoverflow.com/search?q=profiling+php – Gordon Oct 16 '11 at 11:43
1 Answers
2
Don't need accurate, just approximately.
You could use memory_get_usage(). Otherwise profile with microtime().
Then I can know the performance of this function.
Relative to what?
What sort of thing are you trying to measure? Donald Knuth once said something about optimisation...
alex
- 460,746
- 196
- 858
- 974