function drush_performance_get_detail in Performance Logging and Monitoring 6.2
Same name and namespace in other branches
- 7.2 performance.drush.inc \drush_performance_get_detail()
Drupal version independant variation of performance_db_get_data() for easy maintenance of the drush commands.
1 call to drush_performance_get_detail()
File
- ./
performance.drush.inc, line 324 - Drush integration for the Performance module.
Code
function drush_performance_get_detail($arguments) {
$data_list = array();
$result = drush_db_select('performance_detail', '*', NULL, NULL, 0, $arguments['limit'], $arguments['orderby'], $arguments['direction']);
if (drush_drupal_major_version() >= 7) {
foreach ($result as $row) {
$data_list[] = $row;
}
}
else {
while ($row = db_fetch_object($result)) {
$data_list[] = $row;
}
}
return $data_list;
}