mirror of
https://github.com/YunoHost-Apps/limesurvey_ynh.git
synced 2024-09-03 19:36:32 +02:00
19 lines
403 B
PHP
19 lines
403 B
PHP
|
<script type="text/javascript">
|
|||
|
/*<![CDATA[*/
|
|||
|
if(typeof(console)=='object')
|
|||
|
{
|
|||
|
console.group("Profiling Callstack <20><><EFBFBD>i");
|
|||
|
<?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>
|