Skip to content

Commit

Permalink
calculate physical memory used on z/OS (#507)
Browse files Browse the repository at this point in the history
  • Loading branch information
jBarz authored and tobespc committed Nov 28, 2017
1 parent d702f6e commit b964189
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugins/node/memory/nodezmemoryplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ static int64 getTotalPhysicalMemorySize() {
}

static int64 getProcessPhysicalMemorySize() {
//TODO: see if we can improve this on z/OS
return -1;
size_t size;
uv_resident_set_memory(&size);
return size;
}

static int64 getProcessPrivateMemorySize() {
Expand Down

0 comments on commit b964189

Please sign in to comment.