summaryrefslogtreecommitdiffstats
path: root/Process.h
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2022-05-29 23:03:56 +0200
committerBenny Baumann <BenBE@geshi.org>2022-05-31 13:55:43 +0200
commit2999fff88eef0cad39dbbc0054bdf8af9a92215e (patch)
tree59789d67f430d134c5dbe7f48ddf4bbb21bd244b /Process.h
parent2613db4b0d714b2525ae388680523f55b80451b8 (diff)
Refactor code for rendering command line cache
Fixes #1008
Diffstat (limited to 'Process.h')
-rw-r--r--Process.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/Process.h b/Process.h
index a2fa5569..a1ca50fb 100644
--- a/Process.h
+++ b/Process.h
@@ -96,17 +96,10 @@ typedef struct ProcessCmdlineHighlight_ {
* Process_writeCommand to color the string. str will be NULL for kernel
* threads and zombies */
typedef struct ProcessMergedCommand_ {
+ uint64_t lastUpdate; /* Marker based on settings->lastUpdate to track when the rendering needs refreshing */
char* str; /* merged Command string */
size_t highlightCount; /* how many portions of cmdline to highlight */
ProcessCmdlineHighlight highlights[8]; /* which portions of cmdline to highlight */
- bool cmdlineChanged : 1; /* whether cmdline changed */
- bool exeChanged : 1; /* whether exe changed */
- bool commChanged : 1; /* whether comm changed */
- bool prevMergeSet : 1; /* whether showMergedCommand was set */
- bool prevPathSet : 1; /* whether showProgramPath was set */
- bool prevCommSet : 1; /* whether findCommInCmdline was set */
- bool prevCmdlineSet : 1; /* whether stripExeFromCmdline was set */
- bool prevShowThreadNames : 1; /* whether showThreadNames was set */
} ProcessMergedCommand;
typedef struct Process_ {

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