summaryrefslogtreecommitdiffstats
path: root/ProcessList.h
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2006-10-04 16:25:41 +0000
committerHisham Muhammad <hisham@gobolinux.org>2006-10-04 16:25:41 +0000
commit2c4d73040390ca98705b7148b695f63f45e9a645 (patch)
tree69a11bfc5d1e530c413e605b84d8275eb52abc51 /ProcessList.h
parent538d29b3f63a5e8810a780d911848152f6b931a1 (diff)
Allocate per-processor values in a contiguous chunk of memory
Diffstat (limited to 'ProcessList.h')
-rw-r--r--ProcessList.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ProcessList.h b/ProcessList.h
index 9c42a722..ac111e30 100644
--- a/ProcessList.h
+++ b/ProcessList.h
@@ -54,6 +54,10 @@ in the source distribution for its full text.
#define MAX_READ 2048
#endif
+#ifndef PER_PROCESSOR_FIELDS
+#define PER_PROCESSOR_FIELDS 20
+#endif
+
#ifdef DEBUG
@@ -71,6 +75,7 @@ typedef struct ProcessList_ {
int totalTasks;
int runningTasks;
+ // Must match number of PER_PROCESSOR_FIELDS constant
unsigned long long int* totalTime;
unsigned long long int* userTime;
unsigned long long int* systemTime;

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