Skip to content

Commit 641e107

Browse files
committed
Fix MacOS virtual memory size
We now show the resident/working set size instead of the full memory size, since on MacOS the full memory size reports the address space. What we really want is the used physical memory.
1 parent 288e82d commit 641e107

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@
8888
"vscode-test": "^1.6.1"
8989
},
9090
"dependencies": {
91-
"node-ps-data": "^1.4.0"
91+
"node-ps-data": "^1.4.1"
9292
}
9393
}

src/extension.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ async function postData(
267267
function getData(pid: number) {
268268
let cpu = ps.cpuTime(pid);
269269
let timecpu = Date.now();
270-
let mem = ps.memInfo(pid);
270+
let mem = ps.memRSS(pid);
271271
let timemem = Date.now();
272272
let read = ps.fileRead(pid);
273273
let timeread = Date.now();

0 commit comments

Comments
 (0)