? performance_1015628.patch
? krumo/docs
Index: performance/performance.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/devel/performance/performance.info,v
retrieving revision 1.5
diff -u -p -r1.5 performance.info
--- performance/performance.info	4 Jan 2011 19:19:38 -0000	1.5
+++ performance/performance.info	5 Jan 2011 11:45:39 -0000
@@ -4,3 +4,5 @@ description = Logs detailed and/or summa
 package = Development
 core = 7.x
 tags[] = developer
+
+configure = admin/config/development/performance_logging
Index: performance/performance.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/devel/performance/performance.module,v
retrieving revision 1.37
diff -u -p -r1.37 performance.module
--- performance/performance.module	4 Aug 2010 22:24:59 -0000	1.37
+++ performance/performance.module	5 Jan 2011 11:45:40 -0000
@@ -30,20 +30,30 @@ function performance_menu() {
     'access arguments' => array('administer performance logging'),
   );
 
+  $items['admin/config/development/performance_logging/settings'] = array(
+    'title'            => 'Settings',
+    'type'             => MENU_DEFAULT_LOCAL_TASK,
+    'weight'           => 0,
+  );
+
   $items['admin/config/development/performance_logging/apc_clear'] = array(
     'title'            => 'Clear APC',
     'description'      => 'Clears performance statistics collected in APC.',
     'page callback'    => 'drupal_get_form',
     'page arguments'   => array('performance_clear_apc_confirm'),
     'access arguments' => array('administer performance logging'),
+    'type'             => MENU_LOCAL_TASK,
+    'weight'           => 1,
   );
 
-  $items['admin/settings/performance_logging/memcache_clear'] = array(
+  $items['admin/config/development/performance_logging/memcache_clear'] = array(
     'title'            => 'Clear Memcache',
     'description'      => 'Clears performance statistics collected in Memcache.',
     'page callback'    => 'drupal_get_form',
     'page arguments'   => array('performance_clear_memcache_confirm'),
     'access arguments' => array('access administration pages'),
+    'type'             => MENU_LOCAL_TASK,
+    'weight'           => 2,
   );
 
   $items['admin/reports/performance_logging_summary'] = array(
@@ -725,7 +735,7 @@ function performance_clear_apc_confirm()
 function performance_clear_apc_confirm_submit($form_id, &$form) {
   if (!function_exists('apc_cache_info')) {
     drupal_set_message(t('APC is not enabled. Nothing to do ...'), 'status', FALSE);
-    drupal_goto('admin/config/development/performance');
+    drupal_goto('admin/config/development/performance_logging');
     return;
   }
 
@@ -742,7 +752,7 @@ function performance_clear_apc_confirm_s
   }
 
   drupal_set_message(t('Performance statistics collected in APC has been cleared.'), 'status', FALSE);
-  drupal_goto('admin/config/development/performance');
+  drupal_goto('admin/config/development/performance_logging');
 }
 
 function performance_clear_memcache_confirm() {
@@ -752,7 +762,7 @@ function performance_clear_memcache_conf
   return confirm_form(
     $form,
     t('Are you sure you want to clear the Memcache statistics for this site?'),
-    'admin/settings/performance_logging',
+    'admin/config/development/performance_logging',
     t('This will clear all the collected performance statistics stored in Memcache. This action cannot be undone.'),
     t('Clear'),
     t('Cancel'));
@@ -761,11 +771,11 @@ function performance_clear_memcache_conf
 function performance_clear_memcache_confirm_submit($form, &$form_state) {
   if (!performance_memcache_enabled()) {
     drupal_set_message(t('Memcache is not enabled. Nothing to do ...'), 'status', FALSE);
-    drupal_goto('admin/settings/performance');
+    drupal_goto('admin/config/development/performance_logging');
     return;
   }
 
-  // We have to iterate over all entries and delete them, reaching down 
+  // We have to iterate over all entries and delete them, reaching down
   // the API stack and calling dmemcache_delete directly.
   // This is suboptimal, but there is no other alternative
   if ($keys_cache = cache_get(PERFORMANCE_KEY, PERFORMANCE_MEMCACHE_BIN)) {
@@ -778,7 +788,7 @@ function performance_clear_memcache_conf
   }
 
   drupal_set_message(t('Performance statistics collected in Memcache has been cleared.'), 'status', FALSE);
-  drupal_goto('admin/settings/performance');
+  drupal_goto('admin/config/development/performance_logging');
 }
 
 /**
