Свойство | Type | Description | |
---|---|---|---|
$_collapsed | |||
$_data | |||
$_exclusiveKeys | |||
$_functionCount | |||
$_indexed | |||
$_keys | |||
$_visited |
Méthode | Description | |
---|---|---|
__construct ( $profile, $convert = true ) | ||
calculateSelf ( ) : Xhgui_Profile | Generate the approximate exclusive values for each metric. | |
compare ( Xhgui_Profile $head ) : array | Compare this run to another run. | |
extractDimension ( string $dimension, integer $limit ) : array | Extracts a single dimension of data from a profile run. | |
get ( string $key, string $metric = null ) : null | float | Read data from the profile run. | |
getCallgraph ( $metric = 'wt', $threshold = 0.01 ) : array | Return a structured array suitable for generating callgraph visualizations. | |
getDate ( ) | ||
getFlamegraph ( $metric = 'wt', $threshold = 0.01 ) : array | Return a structured array suitable for generating flamegraph visualizations. | |
getFunctionCount ( ) : integer | Get the total number of tracked function calls in this run. | |
getId ( ) | ||
getMeta ( string $key = null ) : null | mixed | Get meta data about the profile. Read's a . split path out of the meta data in a profile. For example SERVER.REQUEST_TIME | |
getProfile ( ) : array | Get the profile run data. | |
getRelatives ( string $symbol, string $metric = null, float $threshold ) : array | Find the parent and children method/functions for a given symbol. | |
getWatched ( string $pattern ) : null | array | Find a function matching a watched function. | |
sort ( string $dimension, array $data ) : array | Sort data by a dimension. | |
splitName ( string $name ) : array | Split a key name into the parent==>child format. | |
toArray ( ) |
Méthode | Description | |
---|---|---|
_callgraphData ( $parentName, $main, $metric, $threshold, $parentIndex = null ) | ||
_diffKeys ( $a, $b, $includeSelf = true ) | ||
_diffPercentKeys ( $a, $b, $includeSelf = true ) | ||
_flamegraphData ( $parentName, $main, $metric, $threshold, $parentIndex = null ) | ||
_getChildren ( string $symbol, string $metric = null, float $threshold ) : array | Find symbols that are the children of the given name. | |
_getParents ( string $symbol ) : array | Get the parent methods for a given symbol. | |
_maxValue ( string $metric ) | Get the max value for any give metric. | |
_process ( ) : void | Convert the raw data into a flatter list that is easier to use. | |
_sumKeys ( array $a, array $b ) : array | Sum up the values in $this->_keys; |
protected _callgraphData ( $parentName, $main, $metric, $threshold, $parentIndex = null ) |
protected _flamegraphData ( $parentName, $main, $metric, $threshold, $parentIndex = null ) |
protected _getChildren ( string $symbol, string $metric = null, float $threshold ) : array | ||
$symbol | string | The name of the function to find children of. |
$metric | string | The metric to compare $threshold with. |
$threshold | float | The threshold to exclude functions at. Any function that represents less than |
Résultat | array | An array of child methods. |
protected _getParents ( string $symbol ) : array | ||
$symbol | string | The name of the function/method to find parents for. |
Résultat | array | List of parents |
public calculateSelf ( ) : Xhgui_Profile | ||
Résultat | Xhgui_Profile | A new instance with exclusive data set. |
public getCallgraph ( $metric = 'wt', $threshold = 0.01 ) : array | ||
Résultat | array |
public getFlamegraph ( $metric = 'wt', $threshold = 0.01 ) : array | ||
Résultat | array |
public getFunctionCount ( ) : integer | ||
Résultat | integer |
public getProfile ( ) : array | ||
Résultat | array |
public getRelatives ( string $symbol, string $metric = null, float $threshold ) : array | ||
$symbol | string | The name of the function/method to find relatives for. |
$metric | string | The metric to compare $threshold with. |
$threshold | float | The threshold to exclude child functions at. Any function that represents less than this percentage of the current metric will be filtered out. |
Résultat | array | List of (parent, current, children) |