D9689: [WIP] Add a per-process CPU usage graph shown in the process list

Fabian Vogt noreply at phabricator.kde.org
Sat Jan 6 00:55:24 UTC 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180106/f0501e92/attachment.html>


More information about the Plasma-devel mailing list