|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct () | |
| get_run ($run_id, $type, &$run_desc) | |
| save_run ($xhprof_data, $type, $run_id=null) | |
| prepare_run ($url) | |
Protected Member Functions | |
| sum_calls ($sum, $data) | |
Protected Attributes | |
| $runid = null | |
| $url = null | |
| $totalexecutiontime = 0 | |
| $totalcputime = 0 | |
| $totalcalls = 0 | |
| $totalmemory = 0 | |
| $timecreated = 0 | |
Custom implementation of iXHProfRuns
This class is one implementation of the iXHProfRuns interface, in charge of storing and retrieve profiling run data to/from DB (profiling table)
The interface only defines two methods to be defined: get_run() and save_run() we'll be implementing some more in order to keep all the rest of information in our runs properly handled.
Definition at line 421 of file xhprof_moodle.php.
| __construct | ( | ) |
Definition at line 431 of file xhprof_moodle.php.
| get_run | ( | $ | run_id, |
| $ | type, | ||
| &$ | run_desc | ||
| ) |
Given one runid and one type, return the run data and some extra info in run_desc from DB
Note that $type is completely ignored
Implements iXHProfRuns.
Definition at line 441 of file xhprof_moodle.php.

| prepare_run | ( | $ | url | ) |
Definition at line 496 of file xhprof_moodle.php.
| save_run | ( | $ | xhprof_data, |
| $ | type, | ||
| $ | run_id = null |
||
| ) |
Given some run data, one type and, optionally, one runid store the information in DB
Note that $type is completely ignored
Implements iXHProfRuns.
Definition at line 465 of file xhprof_moodle.php.

| sum_calls | ( | $ | sum, |
| $ | data | ||
| ) | [protected] |
Definition at line 502 of file xhprof_moodle.php.
$runid = null [protected] |
Definition at line 423 of file xhprof_moodle.php.
$timecreated = 0 [protected] |
Definition at line 429 of file xhprof_moodle.php.
$totalcalls = 0 [protected] |
Definition at line 427 of file xhprof_moodle.php.
$totalcputime = 0 [protected] |
Definition at line 426 of file xhprof_moodle.php.
$totalexecutiontime = 0 [protected] |
Definition at line 425 of file xhprof_moodle.php.
$totalmemory = 0 [protected] |
Definition at line 428 of file xhprof_moodle.php.
$url = null [protected] |
Definition at line 424 of file xhprof_moodle.php.