mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
lib MDL-26625 Add session size info to perfdebug block
This commit is contained in:
parent
48fe5c6cf9
commit
f07704d2a2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user