在你的iOS應用中查找內存問題及泄漏:HeapInspector

jopen 11年前發布 | 19K 次閱讀 iOS開發 移動開發 HeapInspector

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)

 

項目主頁:http://www.baiduhome.net/lib/view/home/1417167780409

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!