Log Missing Getmemoryusage

I have a line in Yii1 like:


But I have noticed this function does not exist in Yii2 at all.

What is the replacement function or is Yii2 leaving this upto PHP now?

this would only be a wrapper around http://www.php.net/manual/de/function.memory-get-peak-usage.php which is not needed so you can use plain php for that.

Awesome that’s kool thanks