njzydark/vscode-stats-bar

Incorrect value reported for used memory on MacOS

mikeburgh opened this issue · 4 comments

It appears to be reporting the wrong memory used value on MacOS.

The Activity monitor app on MacOS reports Memory used at 11.75GB (with 7.12 GB App Memory, 1.88 GB Wired Memory and 1.96 GB Compressed).

However the stats bar is reporting 1.39GB out of the total 16GB (which is right).

I checked it on Linux and Windows and the values were right, just the Mac that seems off.

It appears to be reporting the wrong memory used value on MacOS.

The Activity monitor app on MacOS reports Memory used at 11.75GB (with 7.12 GB App Memory, 1.88 GB Wired Memory and 1.96 GB Compressed).

However the stats bar is reporting 1.39GB out of the total 16GB (which is right).

I checked it on Linux and Windows and the values were right, just the Mac that seems off.

Apple M1?

Yes, sorry should have mentioned that

Update to v0.5.0 to fix this issue

PS: The displayed usage is still a bit off from the activity monitor, but I think it's irrelevant. Also, I added memory pressure (use ${pressurePercent} to custom memory display format), which I think will be a more useful metric than memory usage

Working great now!