Mac OS X 下如何使用类似 Linux 下的 /proc/pid/maps 功能

本文转载至:http://stackoverflow.com/questions/8058005/mac-os-x-equivalent-of-virtualquery-or-proc-pid-maps

一言以概之,使用 vmmap (不过格式和 linux 下有些区别)

操作示例如下:

$ sudo vmmap 66
Process: warmd [66]
Path: /usr/libexec/warmd
Load Address: 0x10f95f000
Identifier: warmd
Version: ???
Code Type: X86-64
Parent Process: launchd [1]

Date/Time: 2016-12-31 10:25:56.814 +0800
Launch Time: 2016-12-31 08:02:26.417 +0800
OS Version: Mac OS X 10.11.6 (15G31)
Report Version: 7
Analysis Tool: /usr/bin/vmmap
----

Virtual Memory Map of process 66 (warmd)
Output report format: 2.4 -- 64-bit process
VM page size: 4096 bytes

==== Non-writable regions for process 66
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
__TEXT 000000010f95f000-000000010f978000 [ 100K] r-x/rwx SM=COW /usr/libexec/warmd
__LINKEDIT 000000010f97a000-000000010f981000 [ 28K] r--/rwx SM=COW /usr/libexec/warmd

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值