summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2008-03-08 23:39:48 +0000
committerHisham Muhammad <hisham@gobolinux.org>2008-03-08 23:39:48 +0000
commit93f091c47e54f8d5d150770a687c4cc76761c954 (patch)
treee789f43adeaa3e77e789d639703dab082bcc6e09 /ProcessList.h
parent52840406ac85943d47ed9311be8db86eedc1ea7a (diff)
BUGFIX: Fix display of CPU count for threaded processes.
When user threads are hidden, process now shows the sum of processor usage for all processors. When user threads are displayed, each thread shows its own processor usage, including the root thread. (thanks to Bert Wesarg for the report) Also, add option to display thread colors differently.
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/ProcessList.h b/ProcessList.h
index 578edb9e..34bdc46e 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -119,6 +119,7 @@ typedef struct ProcessList_ {
bool treeView;
bool highlightBaseName;
bool highlightMegabytes;
+ bool highlightThreads;
bool detailedCPUTime;
#ifdef DEBUG_PROC
FILE* traceFile;
@@ -164,7 +165,7 @@ void ProcessList_sort(ProcessList* this);
bool ProcessList_readStatusFile(ProcessList* this, Process* proc, char* dirname, char* name);
-void ProcessList_processEntries(ProcessList* this, char* dirname, int parent, float period);
+bool ProcessList_processEntries(ProcessList* this, char* dirname, Process* parent, float period);
void ProcessList_scan(ProcessList* this);

© 2014-2024 Faster IT GmbH | imprint | privacy policy