CS fix in AbstractProvider
This commit is contained in:
parent
d03d494d30
commit
b8cc6d758c
1 changed files with 3 additions and 1 deletions
|
|
@ -32,10 +32,12 @@ abstract class AbstractProvider implements ProviderInterface
|
|||
*
|
||||
* @return string
|
||||
*/
|
||||
protected function getMemoryUsage() {
|
||||
protected function getMemoryUsage()
|
||||
{
|
||||
$memory = round(memory_get_usage() / (1024*1024),0); // to get usage in Mo
|
||||
$memoryMax = round(memory_get_peak_usage() / (1024*1024)); // to get max usage in Mo
|
||||
$message = '(RAM : current='.$memory.'Mo peak='.$memoryMax.'Mo)';
|
||||
|
||||
return $message;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue