简体   繁体   English

程序存储器的内容(Mac)

[英]Contents of a programs memory (Mac)

Is there a utility that will show me a program's current memory contents? 是否有一个实用程序可以显示程序当前的内存内容? Like a hex dump of the entire memory being used by the program? 就像程序使用的整个内存的十六进制转储一样? Thanks. 谢谢。

My utility, Bit Slicer , which runs on 10.6 or later can do this for regular applications. 我的实用程序Bit Slicer在10.6或更高版本上运行可以在常规应用程序中执行此操作。

1) Run the program and select a target process. 1)运行程序并选择目标进程。

2) Go to Tools -> Dump All Memory... This will save all the current readable memory in a directory with a bunch of files each indicating a particular memory region and a file that merges everything as well. 2)转到工具 - >转储所有内存...这将保存目录中的所有当前可读内存,其中包含一组文件,每个文件指示一个特定的内存区域和一个合并所有内容的文件。 These files can then be viewed with a hex editor. 然后可以使用十六进制编辑器查看这些文件。

3) There's also the real-time memory viewer in the Memory menu for looking at a particular spot. 3)Memory菜单中还有实时内存查看器,用于查看特定位置。

Dmalloc - Debug Malloc Library Dmalloc - 调试Malloc库

This program came with OS 10.6 but it seems to have disappeared with OS 10.7 (which has many, many, many ... programming complications). 这个程序随OS 10一起提供,但似乎已经在OS 10.7中消失了(它有许多很多很多......编程复杂化)。 Excluding 10.7 regrets, Dmalloc is wonderful way to examine every memory allocation. 排除10.7遗憾,Dmalloc是检查每个内存分配的绝佳方式。

Ah ha... 啊哈......

Mac OS 10.7 provides Menu-Product-Profile. Mac OS 10.7提供了Menu-Product-Profile。 I have not investigated fully used it, however, I recognize the Dmalloc icon within it. 我没有调查完全使用它,但是,我认识到其中的Dmalloc图标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Mac上,Objective C和Ruby适用于哪些程序? - For what programs are Objective C and Ruby ideal on the Mac? 在Mac OS X上以其他用户身份启动程序 - Launching programs as another user on Mac OS X 是否可以像执行C程序那样在Xcode中运行Objective-C程序(不是iPhone / Mac项目)? - Can I run Objective-C programs (not iPhone/Mac projects) in Xcode like executing C programs? iOS和Mac上ARC的内存问题 - Memory issues with ARC on iOS and Mac (Mac)创建键盘事件会导致内存泄漏 - (Mac) creating keyboard events causes memory leaks 在 ARC 中禁止投射内存位置……那么如何获取对象的内容? - Casting a memory location is disabled in ARC… How to get contents of the object then? SpriteKit更改.atlas内容不会从内存中删除 - SpriteKit changing .atlas contents doesn't remove from memory 如何避免将NSData的内容保留在活动内存中? - How can I avoid keeping the contents of NSData in active memory? 如何获得gcc 4.5(从源代码编译)在Mac OS X上使用Objective C | C ++程序? - How do I get gcc 4.5 (compiled from source) to work with Objective C|C++ programs on Mac OS X? 如何获取Apple / Mac上的可用虚拟内存量? - How to get the amount of free virtual memory on Apple / Mac?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM