com.lokorin.lokorin.lib
[ class tree: com.lokorin.lokorin.lib ] [ index: com.lokorin.lokorin.lib ] [ all elements ]

Class: PerformanceData

Source Location: /_includes/lib_performance.php

Class Overview


Describes a collection of all performance data related to a specified URI.


Author(s):

  • Andreas Launila

Variables

Methods



Class Details

[line 167]
Describes a collection of all performance data related to a specified URI.



Tags:

author:  Andreas Launila


[ Top ]


Class Variables

$basicData =

[line 180]

Contains the basic statistical data, data which summarises the performance. The key is the title of the data, the value is an array where the key is the value's name (e.g. "min") and the value is the corresponding value (e.g. "5 queries").



Tags:

access:  private

Type:   array


[ Top ]

$types =

[line 186]

An array containing all performance types. Type constant as array key, the value is another array in which the first value is the corresponding title and the second value is the unit.



Tags:

access:  private

Type:   mixed


[ Top ]

$uri =

[line 172]

The URI which the data is linked to.



Tags:

access:  private

Type:   string


[ Top ]



Class Methods


constructor __construct [line 194]

PerformanceData __construct( string $uri)

Constructor for PerformanceData.



Tags:

access:  public
throws:  IllegalArgumentException If no data was found for the specified URI.


Parameters:

string   $uri   The URI which the performance data should represent.

[ Top ]

method getAllSelectFields [line 248]

string getAllSelectFields( integer $selectType)

Gets the select fields for the min, average and max values (in that order) for the specified select type.



Tags:

return:  A string that can be entered after SELECT in a query.
access:  private


Parameters:

integer   $selectType   A performance constant describing the type of performance that should be looked at.

[ Top ]

method getBasicData [line 261]

array getBasicData( )

Gets the most basic statistical data, data which summarises the performance.



Tags:

return:  The key is the title of the data, the value is an array where the key is the value's name (e.g. "min") and the value is the corresponding value (e.g. "5 queries").
access:  public


[ Top ]

method getFunction [line 340]

array getFunction( integer $selectType)

Gets the function for a specific select type.



Tags:

return:  An array of measurments. The key is the timestamp when the value was measured, the value is the measured value.
access:  private


Parameters:

integer   $selectType   The type of performance data that the function should represent.

[ Top ]

method getGraph [line 279]

resource getGraph( )

Gets a graph that displays all the recorded statistics as a function of time. E.g. all sizes known for the page are displayed as a function of time. All functions are displayed in the same graph.



Tags:

return:  An image resource.
access:  public


[ Top ]

method getUri [line 269]

string getUri( )

Gets the URI that the performance data is linked to.



Tags:

return:  A uniform resource identifier.
access:  public


[ Top ]


Documentation generated on Sun, 16 Apr 2006 21:03:46 +0200 by phpDocumentor 1.3.0RC4