Ticket #50686: _psutil_osx.c.diff
File _psutil_osx.c.diff, 811 bytes (added by josephsacco, 9 years ago) |
---|
-
psutil/_psutil_osx.
old new 600 600 601 601 // Roughly based on libtop_update_vm_regions in 602 602 // http://www.opensource.apple.com/source/top/top-100.1.2/libtop.c 603 for (mach_vm_address_t addr = MACH_VM_MIN_ADDRESS; ; addr += size) { 603 mach_vm_address_t addr; 604 for (addr = MACH_VM_MIN_ADDRESS; ; addr += size) { 604 605 vm_region_top_info_data_t info; 605 606 mach_port_t object_name; 606 607 … … 621 622 } 622 623 623 624 switch (info.share_mode) { 624 case SM_LARGE_PAGE:625 //case SM_LARGE_PAGE: 625 626 // NB: Large pages are not shareable and always resident. 626 627 case SM_PRIVATE: 627 628 private_pages += info.private_pages_resident;