Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
iXHProfRuns Interface Reference
Inheritance diagram for iXHProfRuns:
XHProfRuns_Default moodle_xhprofrun

Public Member Functions

 get_run ($run_id, $type, &$run_desc)
 Returns XHProf data given a run id ($run) of a given type ($type).
 
 save_run ($xhprof_data, $type, $run_id=null)
 Save XHProf data for a profiler run of specified type ($type).
 

Member Function Documentation

◆ get_run()

iXHProfRuns::get_run ( $run_id,
$type,
& $run_desc )

Returns XHProf data given a run id ($run) of a given type ($type).

Also, a brief description of the run is returned via the $run_desc out parameter.

Implemented in moodle_xhprofrun, and XHProfRuns_Default.

◆ save_run()

iXHProfRuns::save_run ( $xhprof_data,
$type,
$run_id = null )

Save XHProf data for a profiler run of specified type ($type).

The caller may optionally pass in run_id (which they promise to be unique). If a run_id is not passed in, the implementation of this method must generated a unique run id for this saved XHProf run.

Returns the run id for the saved XHProf run.

Implemented in moodle_xhprofrun, and XHProfRuns_Default.


The documentation for this interface was generated from the following file: