aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPProcessListController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPProcessListController.m')
-rw-r--r--Source/SPProcessListController.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index e3323666..b0242a35 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -65,6 +65,8 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id";
autoRefreshTimer = nil;
processListThreadRunning = NO;
+ showFullProcessList = [prefs boolForKey:SPProcessListShowFullProcessList];
+
processes = [[NSMutableArray alloc] init];
prefs = [NSUserDefaults standardUserDefaults];
@@ -291,6 +293,16 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id";
}
/**
+ * Toggles the display of the FULL process list.
+ */
+- (IBAction)toggeleShowFullProcessList:(id)sender
+{
+ showFullProcessList = (!showFullProcessList);
+
+ [self refreshProcessList:self];
+}
+
+/**
* Toggles whether or not auto refresh is enabled.
*/
- (IBAction)toggleProcessListAutoRefresh:(id)sender
@@ -312,7 +324,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id";
}
/**
- *
+ * Displays the set custom auto-refresh interval sheet.
*/
- (IBAction)setCustomAutoRefreshInterval:(id)sender
{
@@ -678,7 +690,7 @@ static NSString *SPTableViewIDColumnIdentifier = @"Id";
// Get processes
if ([connection isConnected]) {
- MCPResult *processList = [connection listProcesses];
+ MCPResult *processList = (showFullProcessList) ? [connection queryString:@"SHOW FULL PROCESSLIST"] : [connection listProcesses];
[processList setReturnDataAsStrings:YES];