diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
| commit | 341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch) | |
| tree | 1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/views/lt/profile-summary-firebug.php | |
Diffstat (limited to 'framework/views/lt/profile-summary-firebug.php')
| -rw-r--r-- | framework/views/lt/profile-summary-firebug.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/framework/views/lt/profile-summary-firebug.php b/framework/views/lt/profile-summary-firebug.php new file mode 100644 index 0000000..6e6b339 --- /dev/null +++ b/framework/views/lt/profile-summary-firebug.php @@ -0,0 +1,22 @@ +<script type="text/javascript"> +/*<![CDATA[*/ +if(typeof(console)=='object') +{ + console.group("Suminė profiliavimo ataskaita"); + console.log(" kiekis viso vid. min. maks. "); +<?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> |
