include/SugarXHprof/xhprof_lib/utils/xhprof_runs.php

Show: inherited
Table of Contents

\XHProfRuns_Default

Package: SugarCRM

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.

Parent(s)
\iXHProfRuns
Author
Kannan  

Properties

Propertyprivate  $dir= ''''
Default value''Details
Type
n/a
Propertyprivate  $suffix= ''xhprof''
Default value'xhprof'Details
Type
n/a

Methods

methodpublic__construct(  $dir = null ) : void

Parameters
Name Type Description
$dir
methodprivatefile_name(  $run_id,  $type ) : void

Parameters
Name Type Description
$run_id
$type
methodprivategen_run_id(  $type ) : void

Parameters
Name Type Description
$type
methodpublicget_run(  $run_id,  $type,  $run_desc ) : void

Parameters
Name Type Description
$run_id
$type
$run_desc
methodpubliclist_runs( ) : void

methodpublicsave_run(  $xhprof_data,  $type,  $run_id = null ) : void

Parameters
Name Type Description
$xhprof_data
$type
$run_id

\iXHProfRuns

Package: SugarCRM

iXHProfRuns interface for getting/saving a XHProf run.

Clients can either use the default implementation, namely XHProfRuns_Default, of this interface or define their own implementation.

Children
\XHProfRuns_Default
Author
Kannan  

Methods

methodpublicget_run(  $run_id,  $type,  $run_desc ) : void

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.

Parameters
Name Type Description
$run_id
$type
$run_desc
methodpublicsave_run(  $xhprof_data,  $type,  $run_id = null ) : void

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.

Parameters
Name Type Description
$xhprof_data
$type
$run_id
Documentation was generated by DocBlox 0.18.1.