Commit 6c69a064 authored by Arnaud Bey's avatar Arnaud Bey
Browse files

add global max memory & duration

parent b8a23d22
......@@ -147,6 +147,9 @@ class ImportManager
$stopwatchName = uniqid();
$stopwatch = new Stopwatch();
$stopwatch->start("global_import");
$stopwatch->start($stopwatchName);
$handle = @fopen($pathFileLexicon, "r");
if ($handle) {
......@@ -228,6 +231,11 @@ class ImportManager
echo("Lettre OK \n");
$this->flushAndFreeMemory();
echo("Flush OK \n");
$event = $stopwatch->stop("global_import");
echo "global max memory > " . $event->getMemory()/1048576 . " MB \n";
echo "global duration > " . $event->getDuration()/1000 . " seconds \n\n";
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment