forkbb/app/templates/layouts/debug.forkbb.php
2023-04-12 18:42:22 +07:00

26 lines
1 KiB
PHP

<aside id="fork-debug">
<p class="f-sim-header">{!! __('Debug table') !!}</p>
<p id="id-fdebugtime">[ {!! __(['Generated in %1$s, %2$s queries', num(\microtime(true) - $p->start, 3), $p->numQueries]) !!} - {!! __(['Memory %1$s, Peak %2$s', size(\memory_get_usage()), size(\memory_get_peak_usage())]) !!} ]</p>
@if ($p->queries)
<table id="fork-dgtable">
<thead id="fork-dgthead">
<tr>
<th class="f-tcl" scope="col">{!! __('Query times') !!}</th>
<th class="f-tcr" scope="col">{!! __('Query') !!}</th>
</tr>
</thead>
<tbody>
@foreach ($p->queries as $cur)
<tr>
<td class="f-tcl">{{ num($cur[1], 3) }}</td>
<td class="f-tcr">{{ $cur[0] }}</td>
</tr>
@endforeach
<tr>
<td class="f-tcl">{{ num($p->total, 3) }}</td>
<td class="f-tcr"></td>
</tr>
</tbody>
</table>
@endif
</aside>