fvogt created this revision. fvogt added a reviewer: Plasma. Restricted Application added a project: Plasma. fvogt requested review of this revision.
REVISION SUMMARY By adding a new PercentageHistoryRole returning a QVector with timestamps and values, the delegate can show the history of the percentage as background. This is currently only done for the CPU usage, but can easily be added for memory as well. The history vector is only created and filled after the first access on each process. TEST PLAN Added a small testcase which verifies that the history vector has an entry with the current value after the first refresh after the initial access. The end result looks like this: https://phabricator.kde.org/file/data/mwuxhmkgb7p5gr2jl6ax/PHID-FILE-v76g3drarovozb4fue3w/KSysguard_with_per-process_cpu_graph REPOSITORY R111 KSysguard Library BRANCH history REVISION DETAIL https://phabricator.kde.org/D9689 AFFECTED FILES processui/ProcessModel.cpp processui/ProcessModel.h processui/ProcessModel_p.h processui/ksysguardprocesslist.cpp tests/processtest.cpp tests/processtest.h To: fvogt, #plasma Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart