<table><tr><td style="">fvogt created this revision.<br />fvogt added a reviewer: Plasma.<br />Restricted Application added a project: Plasma.<br />fvogt requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D9689" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>By adding a new PercentageHistoryRole returning a QVector with timestamps and<br />
values, the delegate can show the history of the percentage as background.</p>
<p>This is currently only done for the CPU usage, but can easily be added for<br />
memory as well.</p>
<p>The history vector is only created and filled after the first access on each<br />
process.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Added a small testcase which verifies that the history vector has an entry<br />
with the current value after the first refresh after the initial access.<br />
The end result looks like this:<br />
<a href="https://phabricator.kde.org/file/data/mwuxhmkgb7p5gr2jl6ax/PHID-FILE-v76g3drarovozb4fue3w/KSysguard_with_per-process_cpu_graph" class="remarkup-link" target="_blank" rel="noreferrer">https://phabricator.kde.org/file/data/mwuxhmkgb7p5gr2jl6ax/PHID-FILE-v76g3drarovozb4fue3w/KSysguard_with_per-process_cpu_graph</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R111 KSysguard Library</div></div></div><br /><div><strong>BRANCH</strong><div><div>history</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D9689" rel="noreferrer">https://phabricator.kde.org/D9689</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>processui/ProcessModel.cpp<br />
processui/ProcessModel.h<br />
processui/ProcessModel_p.h<br />
processui/ksysguardprocesslist.cpp<br />
tests/processtest.cpp<br />
tests/processtest.h</div></div></div><br /><div><strong>To: </strong>fvogt, Plasma<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>