lib MDL-26625 Add session size info to perfdebug block

This commit is contained in:
sam marshall 2011-02-28 15:31:23 +00:00
parent 48fe5c6cf9
commit f07704d2a2

View File

@ -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;