Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 975
sumderungHAY Avatar asked Aug 04 '11 23:08

sumderungHAY


People also ask

How do I see application memory on Mac?

You can see the amount of system memory being used on your Mac. In the Activity Monitor app on your Mac, click Memory (or use the Touch Bar) to see the following in the bottom of the window: Memory Pressure: Graphically represents how efficiently your memory is serving your processing needs.

What does application memory on Mac mean?

When your Mac says system has run out of application memory, it means that your computer doesn't have enough memory required by applications to run.

How do I manage application memory on Mac?

Force Quit unused applications If you are a multitasker, quitting unused applications should be the first method to try if your system has run out of application memory. To Force Quit apps on your Mac: Press Option + ⌘+ Esc to open the Force Quit menu. Click Force Quit to close programs you're not currently using.


2 Answers

My utility, Bit Slicer, which runs on 10.6 or later can do this for regular applications.

1) Run the program and select a target process.

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. 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.

like image 104
Zorg Avatar answered Sep 19 '22 23:09

Zorg


Dmalloc - Debug Malloc Library

This program came with OS 10.6 but it seems to have disappeared with OS 10.7 (which has many, many, many ... programming complications). Excluding 10.7 regrets, Dmalloc is wonderful way to examine every memory allocation.

Ah ha...

Mac OS 10.7 provides Menu-Product-Profile. I have not investigated fully used it, however, I recognize the Dmalloc icon within it.

like image 22
Carmin Politano Avatar answered Sep 17 '22 23:09

Carmin Politano