Added new (clean) yii boilerplate
This commit is contained in:
19
framework/views/el/profile-callstack-firebug.php
Normal file
19
framework/views/el/profile-callstack-firebug.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user