GetProcessMemoryUsage on Linux/Android now adds virtual memory mappings gather from /proc/self/smaps. Together with the VM's own accounting of its anonymous mappings, this explains nearly all the processes's RSS.
On Fuchsia, we can gather similar information by walking zx_object_get_info(zx_process_self(), ZX_INFO_PROCESS_MAPS).
On Windows, some combination of VirtualQuery, GetMappedFileName, EnumModules should provide similar information.
On Mac, we may need to parse the output of vmmap, though this might be unacceptably slow.
GetProcessMemoryUsage
on Linux/Android now adds virtual memory mappings gather from /proc/self/smaps. Together with the VM's own accounting of its anonymous mappings, this explains nearly all the processes's RSS.On Fuchsia, we can gather similar information by walking zx_object_get_info(zx_process_self(), ZX_INFO_PROCESS_MAPS).
On Windows, some combination of VirtualQuery, GetMappedFileName, EnumModules should provide similar information.
On Mac, we may need to parse the output of vmmap, though this might be unacceptably slow.