Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc.
48 lines
960 B
PHP
48 lines
960 B
PHP
<?php
|
|
/**
|
|
* Stub profiling functions
|
|
* @file
|
|
* @ingroup Profiler
|
|
*/
|
|
|
|
/** backward compatibility */
|
|
$wgProfiling = false;
|
|
|
|
/** is setproctitle function available ? */
|
|
$haveProctitle = function_exists( 'setproctitle' );
|
|
|
|
/**
|
|
* Begin profiling of a function
|
|
* @param $fn string
|
|
*/
|
|
function wfProfileIn( $fn = '' ) {
|
|
global $hackwhere, $wgDBname, $haveProctitle;
|
|
if( $haveProctitle ){
|
|
$hackwhere[] = $fn;
|
|
setproctitle( $fn . " [$wgDBname]" );
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Stop profiling of a function
|
|
* @param $fn string
|
|
*/
|
|
function wfProfileOut( $fn = '' ) {
|
|
global $hackwhere, $wgDBname, $haveProctitle;
|
|
if( !$haveProctitle )
|
|
return;
|
|
if( count( $hackwhere ) )
|
|
array_pop( $hackwhere );
|
|
if( count( $hackwhere ) )
|
|
setproctitle( $hackwhere[count( $hackwhere )-1] . " [$wgDBname]" );
|
|
}
|
|
|
|
/**
|
|
* Does nothing, just for compatibility
|
|
*/
|
|
function wfGetProfilingOutput( $s, $e ) {}
|
|
|
|
/**
|
|
* Does nothing, just for compatibility
|
|
*/
|
|
function wfProfileClose() {}
|