diff options
Diffstat (limited to 'framework/views/zh_tw/profile-callstack-firebug.php')
| -rw-r--r-- | framework/views/zh_tw/profile-callstack-firebug.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/framework/views/zh_tw/profile-callstack-firebug.php b/framework/views/zh_tw/profile-callstack-firebug.php new file mode 100644 index 0000000..164f706 --- /dev/null +++ b/framework/views/zh_tw/profile-callstack-firebug.php @@ -0,0 +1,19 @@ +<script type="text/javascript"> +/*<![CDATA[*/ +if(typeof(console)=='object') +{ + console.group("Profiling Callstack ���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>
\ No newline at end of file |
