HomePhabricator
Diffusion MITK e77f5618dad4

Fix reports of memory usage on Linux and macOS

Description

Fix reports of memory usage on Linux and macOS

Summary:
The Workbench was far off reporting the process memory in the status bar for both Linux and macOS.

I changed the calculations for both cases according to well-tested and proven software like the
GNOME system monitor and Chromium.

I also did some maintenance and modernization work on involved classes, like removing unused
function templates and methods, converting a solely static class into a namespace and so on...

Fixes T29342

Test Plan:
I tested the reported memory on Windows 10, Ubuntu 20.04, 22.04, as well as on macOS Catalina, Big Sur, and Monteray.
The reported amount of memory did match the memory reports of GNOME system monitor and Chromium.

Reviewers: O3 MITK Reviewer Group II, O1 MITK Reviewer Group I, s434n

Reviewed By: O3 MITK Reviewer Group II, O1 MITK Reviewer Group I, s434n

Maniphest Tasks: T29342

Differential Revision: https://phabricator.mitk.org/D736

Details

Provenance
kislinskAuthored on Oct 14 2022, 2:59 PM
kislinskPushed on Oct 18 2022, 9:35 PM
Reviewer
O3: MITK Reviewer Group II
Differential Revision
Restricted Differential Revision
Parents
rMITK1a76b443aad6: Merge branch 'feature/T29366-TurboColorMap' into develop
rMITK5aa449e9337e: Removed unused include
Branches
Unknown
Tags
Unknown
Tasks
T29342: Workbench reports excessive RAM usage on MacOSX Monterey