Change-Id: I4601600f3d0de79c34f5a1a4074384b27f57b005
* to explicitly call MWDebug::init() to enabled them.
*
* @todo Profiler support
* to explicitly call MWDebug::init() to enabled them.
*
* @todo Profiler support
/**
* Enabled the debugger and load resource module.
* This is called by Setup.php when $wgDebugToolbar is true.
/**
* Enabled the debugger and load resource module.
* This is called by Setup.php when $wgDebugToolbar is true.
*/
public static function init() {
self::$enabled = true;
*/
public static function init() {
self::$enabled = true;
* Add ResourceLoader modules to the OutputPage object if debugging is
* enabled.
*
* Add ResourceLoader modules to the OutputPage object if debugging is
* enabled.
*
* @param $out OutputPage
*/
public static function addModules( OutputPage $out ) {
* @param $out OutputPage
*/
public static function addModules( OutputPage $out ) {
*
* @todo Add support for passing objects
*
*
* @todo Add support for passing objects
*
* @param $str string
*/
public static function log( $str ) {
* @param $str string
*/
public static function log( $str ) {
/**
* Returns internal log array
/**
* Returns internal log array
* @return array
*/
public static function getLog() {
* @return array
*/
public static function getLog() {
/**
* Clears internal log array and deprecation tracking
/**
* Clears internal log array and deprecation tracking
*/
public static function clearLog() {
self::$log = array();
*/
public static function clearLog() {
self::$log = array();
/**
* Adds a warning entry to the log
*
/**
* Adds a warning entry to the log
*
* @param $msg
* @param int $callerOffset
* @return mixed
* @param $msg
* @param int $callerOffset
* @return mixed
/**
* Adds a depreciation entry to the log, along with a backtrace
*
/**
* Adds a depreciation entry to the log, along with a backtrace
*
* @param $function
* @param $version
* @param $component
* @param $function
* @param $version
* @param $component
* This is a method to pass messages from wfDebug to the pretty debugger.
* Do NOT use this method, use MWDebug::log or wfDebug()
*
* This is a method to pass messages from wfDebug to the pretty debugger.
* Do NOT use this method, use MWDebug::log or wfDebug()
*
* @param $str string
*/
public static function debugMsg( $str ) {
* @param $str string
*/
public static function debugMsg( $str ) {
/**
* Begins profiling on a database query
*
/**
* Begins profiling on a database query
*
* @param $sql string
* @param $function string
* @param $isMaster bool
* @param $sql string
* @param $function string
* @param $isMaster bool
/**
* Calculates how long a query took.
*
/**
* Calculates how long a query took.
*
* @param $id int
*/
public static function queryTime( $id ) {
* @param $id int
*/
public static function queryTime( $id ) {
/**
* Returns the HTML to add to the page for the toolbar
*
/**
* Returns the HTML to add to the page for the toolbar
*
* @param $context IContextSource
* @return string
*/
* @param $context IContextSource
* @return string
*/