Added information about memory usage to footer
This commit is contained in:
parent
1bc219a162
commit
d082d74716
2 changed files with 20 additions and 8 deletions
|
@ -145,6 +145,12 @@ footer span:not(:last-of-type):after {
|
||||||
footer a {
|
footer a {
|
||||||
color: silver;
|
color: silver;
|
||||||
}
|
}
|
||||||
|
footer .left {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
footer .right {
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,14 +38,20 @@ Assets::addScript('core.js');
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<div class="main-wrapper">
|
<div class="main-wrapper">
|
||||||
<hr>
|
<hr/>
|
||||||
<span>Load: <?= sprintf('%.05f', microtime(true) - $this->context->startTime) ?>s</span>
|
<div class="left">
|
||||||
<span>Queries: <?= count(\Chibi\Database::getLogs()) ?></span>
|
<span><a href="<?= SZURU_LINK ?>">szurubooru v<?= SZURU_VERSION ?></a></span>
|
||||||
<span><a href="<?= SZURU_LINK ?>">szurubooru v<?= SZURU_VERSION ?></a></span>
|
<?php if (Access::check(new Privilege(Privilege::ListLogs))): ?>
|
||||||
<?php if (Access::check(new Privilege(Privilege::ListLogs))): ?>
|
<span><a href="<?= \Chibi\Router::linkTo(['LogController', 'listView']) ?>">Logs</a></span>
|
||||||
<span><a href="<?= \Chibi\Router::linkTo(['LogController', 'listView']) ?>">Logs</a></span>
|
<?php endif ?>
|
||||||
<?php endif ?>
|
</div>
|
||||||
<hr>
|
<div class="right">
|
||||||
|
<span><?= TextHelper::useBytesUnits(memory_get_usage()) ?></span>
|
||||||
|
<span><?= sprintf('%.04f', microtime(true) - $this->context->startTime) ?>s</span>
|
||||||
|
<span><?= count(\Chibi\Database::getLogs()) ?> queries</span>
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
<hr/>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue