Moodle  2.2.1
http://www.collinsharper.com
XHProfRuns_Default Class Reference
Inheritance diagram for XHProfRuns_Default:
Collaboration diagram for XHProfRuns_Default:

Public Member Functions

 __construct ($dir=null)
 get_run ($run_id, $type, &$run_desc)
 save_run ($xhprof_data, $type, $run_id=null)
 list_runs ()

Detailed Description

XHProfRuns_Default is the default implementation of the iXHProfRuns interface for saving/fetching XHProf runs.

It stores/retrieves runs to/from a filesystem directory specified by the "xhprof.output_dir" ini parameter.

Author:
Kannan

Definition at line 68 of file xhprof_runs.php.


Constructor & Destructor Documentation

__construct ( dir = null)

Definition at line 87 of file xhprof_runs.php.

Here is the call graph for this function:


Member Function Documentation

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.

Implements iXHProfRuns.

Definition at line 111 of file xhprof_runs.php.

Here is the call graph for this function:

list_runs ( )

Definition at line 149 of file xhprof_runs.php.

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.

Implements iXHProfRuns.

Definition at line 125 of file xhprof_runs.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations