summaryrefslogtreecommitdiff
path: root/framework/views/bg/profile-summary-firebug.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/bg/profile-summary-firebug.php')
-rw-r--r--framework/views/bg/profile-summary-firebug.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/framework/views/bg/profile-summary-firebug.php b/framework/views/bg/profile-summary-firebug.php
new file mode 100644
index 0000000..e4eb3ab
--- /dev/null
+++ b/framework/views/bg/profile-summary-firebug.php
@@ -0,0 +1,22 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Обобщен доклад от профилирането");
+ console.log(" count total average min max ");
+<?php
+foreach($data as $index=>$entry)
+{
+ $proc=CJavaScript::quote($entry[0]);
+ $count=sprintf('%5d',$entry[1]);
+ $min=sprintf('%0.5f',$entry[2]);
+ $max=sprintf('%0.5f',$entry[3]);
+ $total=sprintf('%0.5f',$entry[4]);
+ $average=sprintf('%0.5f',$entry[4]/$entry[1]);
+ echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script>