Don't need accurate, just approximately. Then I can know the performance of this function.
Asked
Active
Viewed 75 times
0
-
and in general: http://stackoverflow.com/search?q=profiling+php – Gordon Oct 16 '11 at 11:43
1 Answers
1
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
- 479,566
- 201
- 878
- 984