Skip to content
Browse files

Merge branch 'wip-MDL-26625' of git://github.com/sammarshallou/moodle

  • Loading branch information...
2 parents 7a2f4c1 + f07704d commit 29c852088acb978d0a5e9c7f79762174932ff75d @skodak skodak committed Mar 7, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/moodlelib.php
View
5 lib/moodlelib.php
@@ -9300,6 +9300,11 @@ function get_performance_info() {
$info['txt'] .= "serverload: {$info['serverload']} ";
}
+ // Display size of session
+ $info['sessionsize'] = display_size(strlen(session_encode()));
+ $info['html'] .= '<span class="sessionsize">Session: ' . $info['sessionsize'] . '</span> ';
+ $info['txt'] .= "Session: {$info['sessionsize']} ";
+
/* if (isset($rcache->hits) && isset($rcache->misses)) {
$info['rcachehits'] = $rcache->hits;
$info['rcachemisses'] = $rcache->misses;

0 comments on commit 29c8520

Please sign in to comment.
Something went wrong with that request. Please try again.