在你的iOS应用中查找内存问题及泄漏:HeapInspector
jopen
10年前
HeapInspector是一个iOS的调试工具,可以监视您的应用程序的内存堆。您可以直接在设备上发现内存泄漏,不再需要现场对旬以及更多的问题。
Memory heap snapshots
Basically you can inspect the entire heap and see all living objects of your iOS app.
To be more precise you can record the heap for a specific part of the app. For instance when navigating through the menu. Like in Apple's Instruments the snapshot compares the heap before you started recording. For instance you can start the snapshot before you push a new UIViewController
onto your UINavigationController
stack and stop after popping the UIViewController
. With HeapInspector and heap snapshots you can identify:
- Leaking objects
- Retain cycles
- Living objects that are no longer needed
- static objects like singletons or cached
UIImage
- Dirty memory and your objects on the heap
HeapInspector gives you detailed information for the living objects:
- Reference history (see who called retain, strong, release) for NSObject subclasses
- Responder chain for recorded objects
- Screenshots of the inspected UIView, UIViewController, UIImage
- Detailed information about the object (Description, frame, properties, iVars, methods)