1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/limesurvey_ynh.git synced 2024-09-03 19:36:32 +02:00
limesurvey_ynh/sources/framework/views/el/profile-callstack-firebug.php

19 lines
No EOL
399 B
PHP

<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
console.group("Profiling Callstack Report");
<?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>