summaryrefslogtreecommitdiff
path: root/framework/views/nl/profile-callstack-firebug.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/nl/profile-callstack-firebug.php')
-rw-r--r--framework/views/nl/profile-callstack-firebug.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/framework/views/nl/profile-callstack-firebug.php b/framework/views/nl/profile-callstack-firebug.php
new file mode 100644
index 0000000..79a0cde
--- /dev/null
+++ b/framework/views/nl/profile-callstack-firebug.php
@@ -0,0 +1,17 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object') {
+ console.group("Profiling Callstack Rapport");
+<?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