profile-callstack-firebug.php 411 B

12345678910111213141516171819
  1. <script type="text/javascript">
  2. /*<![CDATA[*/
  3. if(typeof(console)=='object')
  4. {
  5. console.group("Profilowanie: raport stosu wywo�a�");
  6. <?php
  7. foreach($data as $index=>$entry)
  8. {
  9. list($proc,$time,$level)=$entry;
  10. $proc=CJavaScript::quote($proc);
  11. $time=sprintf('%0.5f',$time);
  12. $spaces=str_repeat(' ',$level*8);
  13. echo "\tconsole.log(\"[$time]{$spaces}{$proc}\");\n";
  14. }
  15. ?>
  16. console.groupEnd();
  17. }
  18. /*]]>*/
  19. </script>