Is it as simple as calling memory_get_usage() at the start and end of a script and subtracting the 1st from the second value, to get the total memory used on that script? If so, how can I convert that value to a more understandable number like kb and mb?
Is it as simple as calling memory_get_usage() at the start and end of a
Share
You mean something like this?
I normally use this to format file sizes, but you can use it to solve your problem.