CodeExplorer getStatistics example
$statistics[$name]['hit_read_ratio'
] =
round(100 *
$statistics[$name]['hits'
] /
$statistics[$name]['reads'
], 2
);
} else { $statistics[$name]['hit_read_ratio'
] = null;
} } return $statistics;
} private function calculateTotalStatistics(): array
{ $statistics =
$this->
getStatistics();
$totals =
[ 'calls' => 0,
'time' => 0,
'reads' => 0,
'writes' => 0,
'deletes' => 0,
'hits' => 0,
'misses' => 0,
];
foreach ($statistics as $name =>
$values) { foreach ($totals as $key =>
$value) {