From b96418934cf5be8ca3fe7e05b9c1a922f2630792 Mon Sep 17 00:00:00 2001 From: John Barboza Date: Tue, 28 Nov 2017 04:17:57 -0500 Subject: [PATCH] calculate physical memory used on z/OS (#507) --- src/plugins/node/memory/nodezmemoryplugin.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/node/memory/nodezmemoryplugin.cpp b/src/plugins/node/memory/nodezmemoryplugin.cpp index 8ff05d09..d1472ac9 100644 --- a/src/plugins/node/memory/nodezmemoryplugin.cpp +++ b/src/plugins/node/memory/nodezmemoryplugin.cpp @@ -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() {