|
Moodle
2.2.1
http://www.collinsharper.com
|
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) | |
| 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.


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
Definition at line 225 of file xhprof_moodle.php.

| profiling_is_running | ( | $ | value = null | ) |
Returns if profiling is running, optionally setting it
Definition at line 37 of file xhprof_moodle.php.

| profiling_is_saved | ( | $ | value = null | ) |
Returns if profiling has been saved, optionally setting it
Definition at line 50 of file xhprof_moodle.php.

| 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 |
||
| ) |
| profiling_print_rundiff | ( | $ | run1, |
| $ | run2 | ||
| ) |
| profiling_prune_old_runs | ( | $ | exception = 0 | ) |
| profiling_start | ( | ) |
Start profiling observing all the configuration
Definition at line 63 of file xhprof_moodle.php.

| profiling_stop | ( | ) |
Stop profiling, gathering results and storing them
Definition at line 154 of file xhprof_moodle.php.

| 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.

| profiling_urls | ( | $ | report, |
| $ | runid, | ||
| $ | runid2 = null |
||
| ) |