facebookarchive / FBMemoryProfiler

iOS tool that helps with profiling iOS Memory usage.
Other
3.41k stars 377 forks source link

can you dump memory? #32

Closed canran closed 7 years ago

canran commented 8 years ago

hi,this day i try to dump memory and relationship.when i see this tool,i think may be you can dump it ? like:hook malloc and free and scan the ptr?

Gricha commented 7 years ago

Memory Profiler doesn't currently allow you to just dump the memory easily. We're happy to see the pull request that adds support for it.

There might be other tools that would be more suit to support that as well, like chisel (cc @kastiglione )

kastiglione commented 7 years ago

@canran What do you want to do with the dumped memory? Xcode 8 has a memory debugger, and it can dump to .memgraph files. I don't know what the format of the file is, hence my question about what you want to do with the persisted memory graph. Other Apple tools can work on .memgraph files, but I don't if there's an API for that format.