function performance_get_data_zend in Performance Logging and Monitoring 7
Same name and namespace in other branches
- 6 performance.module \performance_get_data_zend()
Helper function to get data from Zend Datacache.
Parameters
$timestamp unix timestamp to start fetching data from:
Return value
array of fetched data
See also
File
- ./
performance.module, line 749 - 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_get_data_zend($timestamp = 0) {
$data_list = array();
if ($keys_values = zend_shm_cache_fetch(PERFORMANCE_ZEND_KEYS)) {
if ($keys_values !== FALSE) {
foreach ($keys_values as $key => $v) {
$cache = zend_shm_cache_fetch($key);
if ($cache !== FALSE && $cache['created'] >= $timestamp) {
$data_list[] = $cache;
}
}
}
}
return $data_list;
}