D
D
dev4002016-02-20 22:32:15
PHP
dev400, 2016-02-20 22:32:15

Debug information output. How are you doing?

What do you think, is it adequate to display debug info in this way?

<pre class="debug text-center center-block">
   <?php
   $debug = ["memory" => 'Памяти использовано: '.round(memory_get_usage()/1024/1024,2).' MB',
             "time" => 'Страница загружена за: '.round(microtime(true) - $start, 4) .' сек.'
   ];

   foreach($debug as $data) {
      print("<span>".$data."</span>");
   }
   ?>
</pre>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2016-02-21
@dev400

z-ray
Z-ray-AD-for-Framework-1142x256px.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question