Permalink
Browse files

lib MDL-26625 Add session size info to perfdebug block

  • Loading branch information...
1 parent 48fe5c6 commit f07704d2a21b91895a1c115c6604ad310b0e603c @sammarshallou sammarshallou committed Feb 28, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/moodlelib.php
View
@@ -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 f07704d

Please sign in to comment.