Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/xhprof/xhprof_moodle.php File Reference

Go to the source code of this file.

Data Structures

class  moodle_xhprofrun
class  xhprof_table_sql

Namespaces

namespace  core

Functions

 profiling_is_running ($value=null)
 profiling_is_saved ($value=null)
 profiling_start ()
 profiling_stop ()
 profiling_prune_old_runs ($exception=0)
 profiling_get_script ()
 profiling_urls ($report, $runid, $runid2=null)
 profiling_print_run ($run, $prevrunid=null)
 profiling_print_rundiff ($run1, $run2)
 profiling_list_controls ($listurl)
 profiling_string_matches ($string, $patterns)
 profiling_get_difference ($number1, $number2, $units= '', $factor=1, $numdec=2)

Function Documentation

profiling_get_difference ( number1,
number2,
units = '',
factor = 1,
numdec = 2 
)

Helper function that, given to floats, returns their numerical and percentual differences, propertly formated and cssstyled

Definition at line 394 of file xhprof_moodle.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns the path to the php script being requested

Note this function is a partial copy of initialise_fullme() and setup_get_remote_url(), in charge of setting $FULLME, $SCRIPT and friends. To be used by early profiling runs in situations where $SCRIPT isn't defined yet

Returns:
string absolute path (wwwroot based) of the script being executed

Definition at line 225 of file xhprof_moodle.php.

Here is the caller graph for this function:

profiling_is_running ( value = null)

Returns if profiling is running, optionally setting it

Definition at line 37 of file xhprof_moodle.php.

Here is the caller graph for this function:

profiling_is_saved ( value = null)

Returns if profiling has been saved, optionally setting it

Definition at line 50 of file xhprof_moodle.php.

Here is the caller graph for this function:

profiling_list_controls ( listurl)

Helper function that returns the HTML fragment to be displayed on listing mode, it includes actions like deletion/export/import...

Definition at line 362 of file xhprof_moodle.php.

profiling_print_run ( run,
prevrunid = null 
)

Definition at line 261 of file xhprof_moodle.php.

Here is the call graph for this function:

profiling_print_rundiff ( run1,
run2 
)

Definition at line 307 of file xhprof_moodle.php.

Here is the call graph for this function:

profiling_prune_old_runs ( exception = 0)

Definition at line 199 of file xhprof_moodle.php.

Here is the caller graph for this function:

Start profiling observing all the configuration

Definition at line 63 of file xhprof_moodle.php.

Here is the call graph for this function:

Stop profiling, gathering results and storing them

Definition at line 154 of file xhprof_moodle.php.

Here is the call graph for this function:

profiling_string_matches ( string,
patterns 
)

Helper function that looks for matchings of one string against an array of * wildchar patterns

Definition at line 374 of file xhprof_moodle.php.

Here is the caller graph for this function:

profiling_urls ( report,
runid,
runid2 = null 
)

Definition at line 243 of file xhprof_moodle.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations