mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-09-29 14:50:44 +00:00
17 lines
No EOL
421 B
PHP
17 lines
No EOL
421 B
PHP
<script type="text/javascript">
|
|
/*<![CDATA[*/
|
|
if(typeof(console)=='object') {
|
|
console.group("Profiling Callstack Rapport");
|
|
<?php
|
|
foreach($data as $index=>$entry) {
|
|
list($proc,$time,$level)=$entry;
|
|
$proc=CJavaScript::quote($proc);
|
|
$time=sprintf('%0.5f',$time);
|
|
$spaces=str_repeat(' ',$level*8);
|
|
echo "\tconsole.log(\"[$time]{$spaces}{$proc}\");\n";
|
|
}
|
|
?>
|
|
console.groupEnd();
|
|
}
|
|
/*]]>*/
|
|
</script>
|