You are here

function performance_menu in Devel 5

File

performance/performance.module, line 7

Code

function performance_menu($may_cache) {
  $items = array();
  if ($may_cache) {
    $items[] = array(
      'path' => 'admin/settings/performance_logging',
      'title' => t('Performance logging'),
      'description' => t('Logs performance data: page generation times and memory usage.'),
      'access' => user_access('access administration pages'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'performance_settings',
      ),
    );
    $items[] = array(
      'path' => 'admin/settings/performance_logging/apc_clear',
      'title' => t('Clear APC'),
      'description' => t('Clears performance statistics collected in APC.'),
      'access' => user_access('access administration pages'),
      'callback' => 'drupal_get_form',
      'callback arguments' => array(
        'performance_clear_apc_confirm',
      ),
    );
    $items[] = array(
      'path' => 'admin/logs/performance_logging_summary',
      'title' => t('Performance Logs: Summary'),
      'description' => t('View summary performance logs: page generation times and memory usage.'),
      'access' => user_access('access administration pages'),
      'callback' => 'performance_view_summary',
    );
    $items[] = array(
      'path' => 'admin/logs/performance_logging_details',
      'title' => t('Performance Logs: Details'),
      'description' => t('View detailed, per page, performance logs: page generation times and memory usage.'),
      'access' => user_access('access administration pages'),
      'callback' => 'performance_view_details',
    );
  }
  return $items;
}