CaMykS  1.0-20181201
 All Classes Files Functions Variables Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CBench Class Reference

Public Member Functions

 __construct ($params=array())
 
 start ($title='Start')
 
 add_steps ($title='Step')
 
 stop ($title='Stop')
 
 export ($output='')
 
 get_results ()
 

Private Member Functions

 _export_toSharedData ()
 
 _export_toSession ()
 
 _export_toCaMykSLogs ()
 
 _export_toHTML ()
 
 _compute_results ()
 

Private Attributes

 $params = array('output' =>'html')
 CBench parameters. More...
 
 $status = 'idle'
 CBench status. More...
 
 $bench = array()
 CBench saved steps. More...
 
 $results = array()
 CBench computed results. More...
 

Detailed Description

CBench class.

Author
CaMykS Team camyk.nosp@m.s.co.nosp@m.ntact.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Constructor & Destructor Documentation

CBench::__construct (   $params = array())

object constructor

Parameters
array$params- Available parameters are
string output - none / shared / session / logs / html
Returns
void

Member Function Documentation

CBench::_compute_results ( )
private

Compute results.

Returns
void
CBench::_export_toCaMykSLogs ( )
private

Export results to CaMykS logs.

Returns
void
CBench::_export_toHTML ( )
private

Export results to HTML.

Returns
void
CBench::_export_toSession ( )
private

Export results to session.

Returns
void
CBench::_export_toSharedData ( )
private

Export results to CaMykS shared data.

Returns
void
CBench::add_steps (   $title = 'Step')

Add a step to bench.

Parameters
string$title
Returns
void
CBench::export (   $output = '')

Export results.

Returns
void
CBench::get_results ( )

Return results.

Returns
array
CBench::start (   $title = 'Start')

Start bench.

Parameters
string$title
Returns
mixed
CBench::stop (   $title = 'Stop')

Stop bench.

Parameters
string$title
Returns
void

Member Data Documentation

array CBench::$bench = array()
private

CBench saved steps.

array CBench::$params = array('output' =>'html')
private

CBench parameters.

array CBench::$results = array()
private

CBench computed results.

string CBench::$status = 'idle'
private

CBench status.


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