for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace OldSound\RabbitMqBundle\MemoryChecker;
/**
* Returns the current memory PHP is using (mainly used to allow mocking).
*
* @author Jonas Haouzi <[email protected]>
*/
class NativeMemoryUsageProvider
{
* @return int
public function getMemoryUsage()
return memory_get_usage(true);
}