Change-Id: I06e5b3d82cfddd1a407c56819c9bdd91f160e928
// Merge in all of the custom profile sections
foreach ( $this->sprofiler->getFunctionStats() as $stats ) {
// @note: getFunctionStats() values already in ms
- $stats['%real'] = $stats['real'] / $main['real'];
+ $stats['%real'] = $stats['real'] / $main['real'] * 100;
$stats['%cpu'] = $main['cpu'] ? $stats['cpu'] / $main['cpu'] * 100 : 0;
$stats['%memory'] = $main['memory'] ? $stats['memory'] / $main['memory'] * 100 : 0;
$profile[] = $stats; // assume no section names collide with $metrics