Skip to content

Commit

Permalink
Oai::handleRequest(): include memory usage info in the log message
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Mar 22, 2024
1 parent 8cdd3d4 commit 1d02843
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acdhOeaw/arche/oaipmh/Oai.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function handleRequest(): void {
echo $this->response->saveXML($el);
} finally {
echo "\n" . self::$respEnd;
$this->log->info("$this->reqId\tExecution time: " . (microtime(true) - $t0));
$this->log->info("$this->reqId\tExecution time: " . (microtime(true) - $t0) . " peak memory usage: " . round(memory_get_peak_usage(true) / 1024 / 1024) . " MB");
}
}

Expand Down

0 comments on commit 1d02843

Please sign in to comment.