summaryrefslogtreecommitdiff
path: root/framework/views/he/profile-callstack-firebug.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/he/profile-callstack-firebug.php')
-rw-r--r--framework/views/he/profile-callstack-firebug.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/framework/views/he/profile-callstack-firebug.php b/framework/views/he/profile-callstack-firebug.php
new file mode 100644
index 0000000..fbe4fa6
--- /dev/null
+++ b/framework/views/he/profile-callstack-firebug.php
@@ -0,0 +1,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> \ No newline at end of file