profile-summary-firebug.php 644 B

1234567891011121314151617181920212223
  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3. if(typeof(console)=='object')
  4. {
  5. console.group("Ergebnis der Performance-Analyse");
  6. console.log(" Anzahl Gesamt Durschn. Min Max ");
  7. <?php
  8. foreach($data as $index=>$entry)
  9. {
  10. $proc=CJavaScript::quote($entry[0]);
  11. $count=sprintf('%5d',$entry[1]); // 5 digits
  12. $min=sprintf('%0.5f',$entry[2]); // 7 digits
  13. $max=sprintf('%0.5f',$entry[3]); // 7 digits
  14. $total=sprintf('%0.5f',$entry[4]); // 7 digits
  15. $average=sprintf('%0.5f',$entry[4]/$entry[1]); // 7 digits
  16. echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
  17. }
  18. ?>
  19. console.groupEnd();
  20. }
  21. /*]]>*/
  22. </script>