echo number_format(1000 * $elapsed); ?> [[ms]]"> <?php echo number_format(1000 * $full); ?> [[ms]] </div> <div id="dbg-prf-option-memory" class="option memory"> <span title="[[Real usage:]] <?php echo \Spiral\Support\Strings::bytes(memory_get_peak_usage(true)); ?> "> <?php echo \Spiral\Support\Strings::bytes(memory_get_peak_usage()); ?> </span> </div> <!-- Plugins. --> <div id="dbg-profiler-plugin-environment" class="option environment" plugin="environment"> <a title="[[Environment]]"></a> </div> <div id="dbg-profiler-plugin-variables" class="option variables" plugin="variables"> <a title="[[Application Variables]]"></a> </div> <div id="dbg-profiler-plugin-benchmarks" class="option benchmarks" plugin="benchmarks"> <a title="[[Application Profiling]]"></a>
/** * @param bool $format * @return int|string */ public function filesize($format = false) { $filesize = filesize($this->filename); if ($format) { return Strings::bytes($filesize); } return $filesize; }
} $filesize = filesize($filename); $totalCount++; $totalSize += $filesize; ?> <tr> <td><?php echo $files->normalizePath($filename); ?> </td> <td align="right" class="nowrap"> <?php echo \Spiral\Support\Strings::bytes($filesize); ?> </td> </tr> <?php } ?> <tr> <td align="right">TOTAL:</td> <td align="right" class="nowrap"> <?php echo \Spiral\Support\Strings::bytes($totalSize) . ", " . number_format($totalCount) . " file(s)"; ?> </td> </tr> </tbody> </table> </div> </div>