function xhprof_get_metrics in XHProf 7
Same name and namespace in other branches
- 6 xhprof.inc \xhprof_get_metrics()
3 calls to xhprof_get_metrics()
- xhprof_compute_diff in ./
xhprof.inc - Hierarchical diff: Compute and return difference of two call graphs: Run2 - Run1.
- xhprof_compute_flat_info in ./
xhprof.inc - Analyze hierarchical raw data, and compute per-function (flat) inclusive and exclusive metrics.
- xhprof_compute_inclusive_times in ./
xhprof.inc
File
- ./
xhprof.inc, line 1550
Code
function xhprof_get_metrics($xhprof_data) {
// get list of valid metrics
$possible_metrics = xhprof_get_possible_metrics();
// return those that are present in the raw data.
// We'll just look at the root of the subtree for this.
$metrics = array();
foreach ($possible_metrics as $metric => $desc) {
if (isset($xhprof_data["main()"][$metric])) {
$metrics[] = $metric;
}
}
return $metrics;
}