diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-05-29 23:03:56 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2022-05-31 13:55:43 +0200 |
commit | 2999fff88eef0cad39dbbc0054bdf8af9a92215e (patch) | |
tree | 59789d67f430d134c5dbe7f48ddf4bbb21bd244b /Process.h | |
parent | 2613db4b0d714b2525ae388680523f55b80451b8 (diff) |
Refactor code for rendering command line cache
Fixes #1008
Diffstat (limited to 'Process.h')
-rw-r--r-- | Process.h | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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_ { |