function performance_prod_check_return_data in Performance Logging and Monitoring 7.2
Same name and namespace in other branches
- 6.2 performance.module \performance_prod_check_return_data()
- 6 performance.module \performance_prod_check_return_data()
- 7 performance.module \performance_prod_check_return_data()
Return performance data to Production Monitor.
File
- ./
performance.module, line 828 - Logs detailed and/or summary page generation time and memory consumption for page requests. Copyright Khalid Baheyeldin 2008 of http://2bits.com
Code
function performance_prod_check_return_data() {
$data = performance_gather_summary_data();
if (!$data) {
return array(
'performance' => array(
'title' => 'Performance logging',
'data' => 'No performance data found.',
),
);
}
return array(
'performance' => array(
'title' => 'Performance logging',
'data' => array(
'Total number of page accesses' => array(
$data['total_accesses'],
),
'Average duration per page' => array(
$data['ms_avg'],
'ms',
),
'Average memory per page' => array(
$data['mb_avg'],
'MB',
),
'Average querycount' => array(
$data['query_count'],
),
'Average duration per query' => array(
$data['ms_query'],
'ms',
),
),
),
);
}