profile-summary-firebug.php 582 B

12345678910111213141516171819202122
  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3. if(typeof(console)=='object')
  4. {
  5. console.group("Profiloinnin yhteenvetoraportti");
  6. console.log(" lukum. yht. keskim. väh. enint.");
  7. <?php
  8. foreach($data as $index=>$entry)
  9. {
  10. $proc=CJavaScript::quote($entry[0]);
  11. $count=sprintf('%5d',$entry[1]);
  12. $min=sprintf('%0.5f',$entry[2]);
  13. $max=sprintf('%0.5f',$entry[3]);
  14. $total=sprintf('%0.5f',$entry[4]);
  15. $average=sprintf('%0.5f',$entry[4]/$entry[1]);
  16. echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
  17. }
  18. ?>
  19. console.groupEnd();
  20. }
  21. /*]]>*/
  22. </script>