original_string: public static function sessionlock_debugging() {
          global $CFG, $PERF;
  
          if (!empty($CFG->debugsessionlock)) {
              if (isset($PERF->sessionlock['held']) && $PERF->sessionlock['held'] > $CFG->debugsessionlock) {
                  debugging("Script ".me()." locked the session for ".number_format($PERF->sessionlock['held'], 3)
                  ." seconds, it should close the session using \core\session\manager::write_close().", DEBUG_NORMAL);
              }
  
              if (isset($PERF->sessionlock['wait']) && $PERF->sessionlock['wait'] > $CFG->debugsessionlock) {
                  $output = self::display_blocking_page();
                  debugging($output, DEBUG_DEVELOPER);
              }
          }
      }
code: public static function sessionlock_debugging() {
          global $CFG, $PERF;
  
          if (!empty($CFG->debugsessionlock)) {
              if (isset($PERF->sessionlock['held']) && $PERF->sessionlock['held'] > $CFG->debugsessionlock) {
                  debugging("Script ".me()." locked the session for ".number_format($PERF->sessionlock['held'], 3)
                  ." seconds, it should close the session using \core\session\manager::write_close().", DEBUG_NORMAL);
              }
  
              if (isset($PERF->sessionlock['wait']) && $PERF->sessionlock['wait'] > $CFG->debugsessionlock) {
                  $output = self::display_blocking_page();
                  debugging($output, DEBUG_DEVELOPER);
              }
          }
      }
code_tokens: public static function sessionlock_debugging ( ) { global $ CFG , $ PERF ; if ( ! empty ( $ CFG -> debugsessionlock ) ) { if ( isset ( $ PERF -> sessionlock [ 'held' ] ) && $ PERF -> sessionlock [ 'held' ] > $ CFG -> debugsessionlock ) { debugging ( "Script " . me ( ) . " locked the session for " . number_format ( $ PERF -> sessionlock [ 'held' ] , 3 ) . " seconds, it should close the session using \core\session\manager::write_close()." , DEBUG_NORMAL ) ; } if ( isset ( $ PERF -> sessionlock [ 'wait' ] ) && $ PERF -> sessionlock [ 'wait' ] > $ CFG -> debugsessionlock ) { $ output = self :: display_blocking_page ( ) ; debugging ( $ output , DEBUG_DEVELOPER ) ; } } }
docstring: Display debugging info about slow and blocked script.
docstring_tokens: Display debugging info about slow and blocked script .