|
@@ 305-316 (lines=12) @@
|
| 302 |
|
)); |
| 303 |
|
} |
| 304 |
|
|
| 305 |
|
public function callgraphData() |
| 306 |
|
{ |
| 307 |
|
$request = $this->app->request(); |
| 308 |
|
$response = $this->app->response(); |
| 309 |
|
$profile = $this->profiles->get($request->get('id')); |
| 310 |
|
$metric = $request->get('metric') ?: 'wt'; |
| 311 |
|
$threshold = (float)$request->get('threshold') ?: 0.01; |
| 312 |
|
$callgraph = $profile->getCallgraph($metric, $threshold); |
| 313 |
|
|
| 314 |
|
$response['Content-Type'] = 'application/json'; |
| 315 |
|
return $response->body(json_encode($callgraph)); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
public function callgraphDataDot() |
| 319 |
|
{ |
|
@@ 318-329 (lines=12) @@
|
| 315 |
|
return $response->body(json_encode($callgraph)); |
| 316 |
|
} |
| 317 |
|
|
| 318 |
|
public function callgraphDataDot() |
| 319 |
|
{ |
| 320 |
|
$request = $this->app->request(); |
| 321 |
|
$response = $this->app->response(); |
| 322 |
|
$profile = $this->profiles->get($request->get('id')); |
| 323 |
|
$metric = $request->get('metric') ?: 'wt'; |
| 324 |
|
$threshold = (float)$request->get('threshold') ?: 0.01; |
| 325 |
|
$callgraph = $profile->getCallgraphNodes($metric, $threshold); |
| 326 |
|
|
| 327 |
|
$response['Content-Type'] = 'application/json'; |
| 328 |
|
return $response->body(json_encode($callgraph)); |
| 329 |
|
} |
| 330 |
|
} |
| 331 |
|
|