summaryrefslogtreecommitdiff
path: root/framework/views/de/profile-summary-firebug.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/views/de/profile-summary-firebug.php')
-rw-r--r--framework/views/de/profile-summary-firebug.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/framework/views/de/profile-summary-firebug.php b/framework/views/de/profile-summary-firebug.php
new file mode 100644
index 0000000..829ee64
--- /dev/null
+++ b/framework/views/de/profile-summary-firebug.php
@@ -0,0 +1,23 @@
+<script type="text/javascript">
+/*<![CDATA[*/
+if(typeof(console)=='object')
+{
+ console.group("Ergebnis der Performance-Analyse");
+ console.log(" Anzahl Gesamt Durschn. Min Max ");
+<?php
+foreach($data as $index=>$entry)
+{
+ $proc=CJavaScript::quote($entry[0]);
+ $count=sprintf('%5d',$entry[1]); // 5 digits
+ $min=sprintf('%0.5f',$entry[2]); // 7 digits
+ $max=sprintf('%0.5f',$entry[3]); // 7 digits
+ $total=sprintf('%0.5f',$entry[4]); // 7 digits
+ $average=sprintf('%0.5f',$entry[4]/$entry[1]); // 7 digits
+ echo "\tconsole.log(\" $count $total $average $min $max {$proc}\");\n";
+
+}
+?>
+ console.groupEnd();
+}
+/*]]>*/
+</script>