1. 17 Sep, 2020 2 commits
  2. 15 Sep, 2020 1 commit
  3. 14 Sep, 2020 1 commit
    • Arjen Hiemstra's avatar
      Rework CGroup PID reading runnable to prevent crashes · f0512a6a
      Arjen Hiemstra authored
      Sometimes the CGroup gets deleted before the Runnable finishes, causing
      a crash when we try to lock the PID lock. Since we have no way of
      tracking the CGroup object lifetime, rework the code to instead have the
      CGroup wait on the runnable when needed. Effectively this turns the
      runnable into more of a Future.
      f0512a6a
  4. 07 Sep, 2020 1 commit
    • Arjen Hiemstra's avatar
      Do not use QStringView of a temporary · d5876529
      Arjen Hiemstra authored
      QString::mid() return a temporary QString. QStringView doesn't actually
      hold any reference to data, so the temporary gets deleted somewhere
      after we create the string view, which makes the string view invalid. So
      instead, use QStringRef here for which there is a separate method.
      d5876529
  5. 06 Sep, 2020 1 commit
  6. 03 Sep, 2020 4 commits
  7. 02 Sep, 2020 2 commits
    • Arjen Hiemstra's avatar
      Add missing Updates alias to Process · f0b89c98
      Arjen Hiemstra authored
      f0b89c98
    • Arjen Hiemstra's avatar
      Move reading of /proc/pid/smaps_rollup to a separate thread · 23852597
      Arjen Hiemstra authored
      As it turns out, smaps/smaps_rollup are fairly slow to read because the
      kernel iterates all the memory of a process when this file is accessed.
      This caused the update time of all processes to go up from ~30 ms to
      more than 200ms.
      
      This changes things to do the reading of smaps_rollup in a separate
      thread that doesn't block the main update. This reduces update time to
      ~50ms, which is noticably better. To accomodate the asynchronous nature,
      some additional functionality needed to be added so we can notify
      Processes of the asynchronous update.
      23852597
  8. 31 Aug, 2020 1 commit
  9. 29 Aug, 2020 1 commit
  10. 27 Aug, 2020 1 commit
    • Arjen Hiemstra's avatar
      Prevent CGroup object deletion from crashing the application · da9b3d62
      Arjen Hiemstra authored
      In certain cases, a race condition seems to come up where the PID
      retrieval thread tries to set the PIDs while the cgroup object is being
      deleted. So lock the mutex in the destructor, so that if that should
      happen, destruction will block while the PIDs are being updated.
      da9b3d62
  11. 25 Aug, 2020 1 commit
  12. 19 Aug, 2020 1 commit
  13. 18 Aug, 2020 5 commits
  14. 17 Aug, 2020 3 commits
  15. 12 Aug, 2020 1 commit
  16. 11 Aug, 2020 2 commits
  17. 10 Aug, 2020 1 commit
  18. 03 Aug, 2020 1 commit
  19. 31 Jul, 2020 4 commits
  20. 30 Jul, 2020 1 commit
  21. 29 Jul, 2020 4 commits
  22. 28 Jul, 2020 1 commit