summaryrefslogtreecommitdiff
path: root/framework/views/zh_cn/profile-callstack-firebug.php
blob: 60482d7fb61abc281e6eaad80abdcb52b80bc273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<script type="text/javascript">
/*<![CDATA[*/
if(typeof(console)=='object')
{
	console.group("程序概要分析 - 堆栈调用报告");
<?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>