aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConstants.h1
-rw-r--r--Source/SPConstants.m1
-rw-r--r--Source/SPProcessListController.h1
-rw-r--r--Source/SPProcessListController.m16
4 files changed, 17 insertions, 2 deletions
diff --git a/Source/SPConstants.h b/Source/SPConstants.h
index df66951a..ef1fc0c4 100644
--- a/Source/SPConstants.h
+++ b/Source/SPConstants.h
@@ -349,6 +349,7 @@ extern NSString *SPTableInformationPanelCollapsed;
extern NSString *SPTableColumnWidths;
extern NSString *SPProcessListTableColumnWidths;
extern NSString *SPProcessListShowProcessID;
+extern NSString *SPProcessListShowFullProcessList;
extern NSString *SPProcessListEnableAutoRefresh;
extern NSString *SPProcessListAutoRrefreshInterval;
extern NSString *SPFavoritesSortedBy;
diff --git a/Source/SPConstants.m b/Source/SPConstants.m
index abb27c1c..ef263d98 100644
--- a/Source/SPConstants.m
+++ b/Source/SPConstants.m
@@ -155,6 +155,7 @@ NSString *SPTableInformationPanelCollapsed = @"TableInformationPanelCollap
NSString *SPTableColumnWidths = @"tableColumnWidths";
NSString *SPProcessListTableColumnWidths = @"ProcessListTableColumnWidths";
NSString *SPProcessListShowProcessID = @"ProcessListShowProcessID";
+NSString *SPProcessListShowFullProcessList = @"ProcessListShowFullProcessList";
NSString *SPProcessListEnableAutoRefresh = @"ProcessListEnableAutoRefresh";
NSString *SPProcessListAutoRrefreshInterval = @"ProcessListAutoRrefreshInterval";
NSString *SPFavoritesSortedBy = @"FavoritesSortedBy";
diff --git a/Source/SPProcessListController.h b/Source/SPProcessListController.h
index 3fc66c78..df5f48a6 100644
--- a/Source/SPProcessListController.h
+++ b/Source/SPProcessListController.h
@@ -58,6 +58,7 @@
- (IBAction)killProcessQuery:(id)sender;
- (IBAction)killProcessConnection:(id)sender;
- (IBAction)toggleShowProcessID:(id)sender;
+- (IBAction)toggeleShowFullProcessList:(id)sender;
- (IBAction)toggleProcessListAutoRefresh:(id)sender;
- (IBAction)setAutoRefreshInterval:(id)sender;
- (IBAction)setCustomAutoRefreshInterval:(id)sender;
diff --git a/Source/SPProcessListController.m b/Source/SPProcessListController.m
index 8062fd93..4caa6a59 100644
--- a/Source/SPProcessListController.m
+++ b/Source/SPProcessListController.m
@@ -62,6 +62,8 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
autoRefreshTimer = nil;
processListThreadRunning = NO;
+ showFullProcessList = [prefs boolForKey:SPProcessListShowFullProcessList];
+
processes = [[NSMutableArray alloc] init];
prefs = [NSUserDefaults standardUserDefaults];
@@ -288,6 +290,16 @@ static const 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
@@ -309,7 +321,7 @@ static const NSString *SPTableViewIDColumnIdentifier = @"Id";
}
/**
- *
+ * Displays the set custom auto-refresh interval sheet.
*/
- (IBAction)setCustomAutoRefreshInterval:(id)sender
{
@@ -675,7 +687,7 @@ static const 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];