Download the PHP package kanel/memoryusage without Composer
On this page you can find all versions of the php package kanel/memoryusage. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package memoryusage
A simple Memory usage tracking class to benchmark functions or code execution memory consumption
How it works :
-
Start the memory tracking
-
Mark a place as a lap (the memory tracking will continue counting after returning the difference between the start and this lap)
Where $memoryUsage is instance of class :
-
If you want the memory used between this lap and the last one, send the following constant as a parameter:
-
To stop the memory usage tracking and get the memory used from the beginning (the start)
-
To stop the memory tracking and get the memory used from the last lap
-
To get the history of tracked memory
Where $memoryUsages is an array of MemoryUsage classes