VM Service: Gather virtual memory mappings from other operating systems #46166
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
vm-service
The VM Service Protocol, both the specification and its implementation
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.
The text was updated successfully, but these errors were encountered: