profile-summary-firebug.php 600 B

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