<table><tr><td style="">davidedmundson created this revision.<br />davidedmundson added a reviewer: Plasma.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />davidedmundson 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/D23287">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Currently everything for processes is hardcoded with a method for each<br />
process property. This is core functionality like CPU usage and memory<br />
usage but it's not very extensible.</p>

<p>Currently ProcessModel is full of extra hacks to add X11 data when<br />
really it should be a dumb proxier of information.</p>

<p>We have a pending patch to show network stats, and we have a pending<br />
patch to add powertop information, which all work in a different way<br />
from just reading data in /proc</p>

<p>In order to keep it flexible a more generic format method is added which<br />
doesn't require hardcoding knowledge of types.</p>

<p>This patch is part of a series, next steps are adding various plugins,<br />
stripping proces model - and then using the ProcessAttribute class to<br />
provide the metadata for the core process attributes so that<br />
ProcessModel can become a very simple view with no code duplication.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R111 KSysguard Library</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23287">https://phabricator.kde.org/D23287</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>CMakeLists.txt<br />
processcore/CMakeLists.txt<br />
processcore/extended_process_list.cpp<br />
processcore/extended_process_list.h<br />
processcore/formatter.cpp<br />
processcore/formatter.h<br />
processcore/process_data_provider.cpp<br />
processcore/process_data_provider.h<br />
processcore/processes.cpp<br />
processcore/processes.h<br />
processcore/unit.cpp<br />
processcore/unit.h<br />
processui/ProcessModel.cpp<br />
processui/ProcessModel_p.h</div></div></div><br /><div><strong>To: </strong>davidedmundson, Plasma<br /><strong>Cc: </strong>plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>