Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Performance_Manager Class Reference
Inheritance diagram for Performance_Manager:
MySource_Object

Public Member Functions

 __construct ()
 
 begin ()
 
 end ()
 
 startTimer ($asset, $step= 'default')
 
 stopTimer ($asset, $step= 'default')
 
 printFrames ($asset)
 
 printResults ()
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

 $performance_data
 
- Data Fields inherited from MySource_Object
 $_tmp
 

Detailed Description

Definition at line 34 of file performance_manager.inc.

Constructor & Destructor Documentation

__construct ( )

Constructor

initialize performance data used to store all performance metrics results initialize timer stack used to calculating orders of timer on the run

Returns
void public

Definition at line 50 of file performance_manager.inc.

Member Function Documentation

begin ( )

Start total timer

Returns
void public

Definition at line 67 of file performance_manager.inc.

end ( )

End total timer

Returns
void public

Definition at line 82 of file performance_manager.inc.

printFrames (   $asset)

Print the landing page of performance result It splits to 2 frames for original page and performance result page

Parameters
mixed$assetfrontend asset
Returns
void public

Definition at line 245 of file performance_manager.inc.

printResults ( )

Print the performance result page note: if there is any index missing in the performance data, check if all open timers are closed properly

Returns
void public

Add a URL parameter (or changing it if it already exists)

Parameters
{search}string this is typically document.location.search
{key}string the key to set
{val}string value

Definition at line 320 of file performance_manager.inc.

startTimer (   $asset,
  $step = 'default' 
)

Start asset timer

Parameters
mixed$assetcurrent asset to be timed
string$stepan asset can be timed for a number of steps. no need to specify step if there is only one step
Returns
void public

Definition at line 110 of file performance_manager.inc.

stopTimer (   $asset,
  $step = 'default' 
)

Stop asset timer

Parameters
mixed$assetcurrent asset to be timed
string$stepan asset can be timed for a number of steps. no need to specify step if there is only one step
Returns
void public

Definition at line 184 of file performance_manager.inc.


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