|
Squiz Matrix
4.12.2
|
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 | |
Definition at line 34 of file performance_manager.inc.
| __construct | ( | ) |
Constructor
initialize performance data used to store all performance metrics results initialize timer stack used to calculating orders of timer on the run
Definition at line 50 of file performance_manager.inc.
| begin | ( | ) |
| end | ( | ) |
| printFrames | ( | $asset | ) |
Print the landing page of performance result It splits to 2 frames for original page and performance result page
| mixed | $asset | frontend asset |
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
Add a URL parameter (or changing it if it already exists)
| {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
| mixed | $asset | current asset to be timed |
| string | $step | an asset can be timed for a number of steps. no need to specify step if there is only one step |
Definition at line 110 of file performance_manager.inc.
| stopTimer | ( | $asset, | |
$step = 'default' |
|||
| ) |
Stop asset timer
| mixed | $asset | current asset to be timed |
| string | $step | an asset can be timed for a number of steps. no need to specify step if there is only one step |
Definition at line 184 of file performance_manager.inc.