njzydark / vscode-stats-bar

A vscode extension to show system stats in status bar
https://marketplace.visualstudio.com/items?itemName=njzy.stats-bar
MIT License
40 stars 3 forks source link

Incorrect value reported for used memory on MacOS #2

Closed mikeburgh closed 2 years ago

mikeburgh commented 2 years ago

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.

njzydark commented 2 years ago

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?

mikeburgh commented 2 years ago

Yes, sorry should have mentioned that

njzydark commented 2 years ago

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

mikeburgh commented 2 years ago

Working great now!