memory usage
This commit is contained in:
parent
ad691eb9f8
commit
6a42a3d6f3
@ -55,6 +55,8 @@ class UsageReporter implements TimerListener {
|
|||||||
$properties['TitleId'] = $this->maniaControl->server->titleId;
|
$properties['TitleId'] = $this->maniaControl->server->titleId;
|
||||||
$properties['ServerName'] = Formatter::stripDirtyCodes($this->maniaControl->client->getServerName());
|
$properties['ServerName'] = Formatter::stripDirtyCodes($this->maniaControl->client->getServerName());
|
||||||
$properties['PlayerCount'] = $this->maniaControl->playerManager->getPlayerCount();
|
$properties['PlayerCount'] = $this->maniaControl->playerManager->getPlayerCount();
|
||||||
|
$properties['MemoryUsage'] = memory_get_usage();
|
||||||
|
$properties['MemoryPeakUsage'] = memory_get_peak_usage();
|
||||||
|
|
||||||
$maxPlayers = $this->maniaControl->client->getMaxPlayers();
|
$maxPlayers = $this->maniaControl->client->getMaxPlayers();
|
||||||
$properties['MaxPlayers'] = $maxPlayers["CurrentValue"];
|
$properties['MaxPlayers'] = $maxPlayers["CurrentValue"];
|
||||||
|
Loading…
Reference in New Issue
Block a user