You are here

function drush_performance_get_detail in Performance Logging and Monitoring 7.2

Same name and namespace in other branches
  1. 6.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()
drush_performance_details in ./performance.drush.inc

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;
}