@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * out of the meta data in a profile. For example `SERVER.REQUEST_TIME` |
| 170 | 170 | * |
| 171 | 171 | * @param string $key the dotted key to read |
| 172 | - * @return mixed|null null on failure, otherwise the stored value |
|
| 172 | + * @return string null on failure, otherwise the stored value |
|
| 173 | 173 | */ |
| 174 | 174 | public function getMeta($key = null) |
| 175 | 175 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * @param string $symbol the name of the function/method to find |
| 251 | 251 | * relatives for |
| 252 | 252 | * @param string $metric the metric to compare $threshold with |
| 253 | - * @param float $threshold The threshold to exclude child functions at. Any |
|
| 253 | + * @param integer $threshold The threshold to exclude child functions at. Any |
|
| 254 | 254 | * function that represents less than this percentage of the current metric |
| 255 | 255 | * will be filtered out. |
| 256 | 256 | * @return array List of (parent, current, children) |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | * |
| 302 | 302 | * @param string $symbol the name of the function to find children of |
| 303 | 303 | * @param string $metric the metric to compare $threshold with |
| 304 | - * @param float $threshold The threshold to exclude functions at. Any |
|
| 304 | + * @param integer $threshold The threshold to exclude functions at. Any |
|
| 305 | 305 | * function that represents less than |
| 306 | 306 | * @return array an array of child methods |
| 307 | 307 | */ |
@@ -587,6 +587,11 @@ discard block |
||
| 587 | 587 | return $out; |
| 588 | 588 | } |
| 589 | 589 | |
| 590 | + /** |
|
| 591 | + * @param string $parentName |
|
| 592 | + * @param string $metric |
|
| 593 | + * @param double $threshold |
|
| 594 | + */ |
|
| 590 | 595 | private function callgraphData($parentName, $main, $metric, $threshold, $parentIndex = null): void |
| 591 | 596 | { |
| 592 | 597 | // Leaves don't have children, and don't have links/nodes to add. |