MediaWiki REL1_30
ProfilerFunctions.php
Go to the documentation of this file.
1<?php
32function wfGetRusage() {
33 if ( !function_exists( 'getrusage' ) ) {
34 return false;
35 } elseif ( defined( 'HHVM_VERSION' ) && PHP_OS === 'Linux' ) {
36 return getrusage( 2 /* RUSAGE_THREAD */ );
37 } else {
38 return getrusage( 0 /* RUSAGE_SELF */ );
39 }
40}
41
47function wfProfileIn( $functionname ) {
48}
49
55function wfProfileOut( $functionname = 'missing' ) {
56}
wfGetRusage()
Get system resource usage of current request context.
wfProfileOut( $functionname='missing')
Stop profiling of a function.
wfProfileIn( $functionname)
Begin profiling of a function.