@@ -57,8 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Get a URL for xhgui. |
| 59 | 59 | * |
| 60 | - * @param string $path The file/path you want a link to |
|
| 61 | - * @param array $queryarg Additional querystring arguments. |
|
| 60 | + * @param array $queryargs Additional querystring arguments. |
|
| 62 | 61 | * @return string url. |
| 63 | 62 | */ |
| 64 | 63 | public function url($name, $queryargs = array()) |
@@ -73,7 +72,6 @@ discard block |
||
| 73 | 72 | /** |
| 74 | 73 | * Get the URL for static content relative to webroot |
| 75 | 74 | * |
| 76 | - * @param string $path The file/path you want a link to |
|
| 77 | 75 | * @return string url. |
| 78 | 76 | */ |
| 79 | 77 | public function staticUrl($url) |
@@ -94,6 +94,9 @@ discard block |
||
| 94 | 94 | return $a; |
| 95 | 95 | } |
| 96 | 96 | |
| 97 | + /** |
|
| 98 | + * @param double $a |
|
| 99 | + */ |
|
| 97 | 100 | protected function _diffPercentKeys($a, $b, $includeSelf = true) |
| 98 | 101 | { |
| 99 | 102 | $out = array(); |
@@ -143,7 +146,7 @@ discard block |
||
| 143 | 146 | * out of the meta data in a profile. For example `SERVER.REQUEST_TIME` |
| 144 | 147 | * |
| 145 | 148 | * @param string $key The dotted key to read. |
| 146 | - * @return null|mixed Null on failure, otherwise the stored value. |
|
| 149 | + * @return string Null on failure, otherwise the stored value. |
|
| 147 | 150 | */ |
| 148 | 151 | public function getMeta($key = null) |
| 149 | 152 | { |
@@ -220,7 +223,7 @@ discard block |
||
| 220 | 223 | * @param string $symbol The name of the function/method to find |
| 221 | 224 | * relatives for. |
| 222 | 225 | * @param string $metric The metric to compare $threshold with. |
| 223 | - * @param float $threshold The threshold to exclude child functions at. Any |
|
| 226 | + * @param integer $threshold The threshold to exclude child functions at. Any |
|
| 224 | 227 | * function that represents less than this percentage of the current metric |
| 225 | 228 | * will be filtered out. |
| 226 | 229 | * @return array List of (parent, current, children) |
@@ -269,7 +272,7 @@ discard block |
||
| 269 | 272 | * |
| 270 | 273 | * @param string $symbol The name of the function to find children of. |
| 271 | 274 | * @param string $metric The metric to compare $threshold with. |
| 272 | - * @param float $threshold The threshold to exclude functions at. Any |
|
| 275 | + * @param integer $threshold The threshold to exclude functions at. Any |
|
| 273 | 276 | * function that represents less than |
| 274 | 277 | * @return array An array of child methods. |
| 275 | 278 | */ |
@@ -527,6 +530,11 @@ discard block |
||
| 527 | 530 | return $out; |
| 528 | 531 | } |
| 529 | 532 | |
| 533 | + /** |
|
| 534 | + * @param string $parentName |
|
| 535 | + * @param string $metric |
|
| 536 | + * @param double $threshold |
|
| 537 | + */ |
|
| 530 | 538 | protected function _callgraphData($parentName, $main, $metric, $threshold, $parentIndex = null) |
| 531 | 539 | { |
| 532 | 540 | // Leaves don't have children, and don't have links/nodes to add. |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @param integer $percentile The percentile you want. e.g. 90. |
| 103 | 103 | * @param string $url |
| 104 | - * @param array $search Search options containing startDate and or endDate |
|
| 104 | + * @param Xhgui_Storage_Filter $filter |
|
| 105 | 105 | * @return array Array of metrics grouped by date |
| 106 | 106 | */ |
| 107 | 107 | public function getPercentileForUrl($percentile, $url, $filter) |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | /** |
| 138 | 138 | * Get a paginated set of results. |
| 139 | 139 | * |
| 140 | - * @param array $options The find options to use. |
|
| 140 | + * @param Xhgui_Storage_Filter $filter |
|
| 141 | 141 | * @return array An array of result data. |
| 142 | 142 | */ |
| 143 | 143 | public function getAll($filter) |
@@ -282,7 +282,7 @@ discard block |
||
| 282 | 282 | |
| 283 | 283 | /** |
| 284 | 284 | * @param $file |
| 285 | - * @return mixed |
|
| 285 | + * @return string |
|
| 286 | 286 | */ |
| 287 | 287 | protected function getMetafileNameFromProfileName($file) |
| 288 | 288 | { |
@@ -292,7 +292,7 @@ discard block |
||
| 292 | 292 | |
| 293 | 293 | |
| 294 | 294 | /** |
| 295 | - * @param $timestamp |
|
| 295 | + * @param DateTime $timestamp |
|
| 296 | 296 | * @return bool|DateTime |
| 297 | 297 | */ |
| 298 | 298 | protected function getDateTimeFromStringOrTimestamp($timestamp) |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | 403 | * @param $name |
| 404 | - * @return bool |
|
| 404 | + * @return false|null |
|
| 405 | 405 | */ |
| 406 | 406 | public function addWatchedFunction($name) |
| 407 | 407 | { |
@@ -416,7 +416,7 @@ discard block |
||
| 416 | 416 | /** |
| 417 | 417 | * @param $id |
| 418 | 418 | * @param $name |
| 419 | - * @return bool |
|
| 419 | + * @return false|null |
|
| 420 | 420 | */ |
| 421 | 421 | public function updateWatchedFunction($id, $name) |
| 422 | 422 | { |
@@ -319,7 +319,7 @@ |
||
| 319 | 319 | } |
| 320 | 320 | |
| 321 | 321 | /** |
| 322 | - * @param \Xhgui_Storage_Filter $options |
|
| 322 | + * @param DateTime $date |
|
| 323 | 323 | * @return \DateTime |
| 324 | 324 | */ |
| 325 | 325 | protected function getDateTimeFromString($date) |
@@ -326,7 +326,7 @@ |
||
| 326 | 326 | } |
| 327 | 327 | |
| 328 | 328 | /** |
| 329 | - * @param \Xhgui_Storage_Filter $options |
|
| 329 | + * @param DateTime $date |
|
| 330 | 330 | * @return \DateTime |
| 331 | 331 | */ |
| 332 | 332 | protected function getDateTimeFromString($date) { |