CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

MFPerformanceMonitor 0.0.4

MFPerformanceMonitor 0.0.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2016

Maintained by vviicc.



 
Depends on:
PNChart>= 0
ZipArchiveV>= 0
MLeaksFinder>= 0
 

  • By
  • Vic

A tool to monitor ios app performance such as memory and cpu.

特点:

  • 监控单个ViewController所占用的内存(ViewDidLoad - Alloc)以及销毁后的内存变化 (Dealloc - Alloc,理想情况值为0) ,可用于查看和记录比较单个ViewController内存占用情况以及潜在的内存泄漏,也可结合UI自动化测试使用(比如重复push/pop某个ViewController看内存情况)
  • 定时采样,采集当前ViewController和APP的内存,CPU
  • 将原始数据以Excel格式保存到本地方便查看
  • 只需pod,对项目代码无污染,仅在debug环境生效,建议在release环境删掉此pod库以较少APP体积
  • pod依赖了MLeaksFinder,可用于发现内存泄漏

Usage

pod 'MFPerformanceMonitor', :configurations => ['Debug']

ps:Other Linker Flags加入-ObjC标志或者用-force_load libMFPerformanceMonitor.a以及 libMLeaksFinder.a

Screenshots

入口

主界面

Controller内存变化

Controller定时采样

APP定时采样

本地保存为Excel

Excel文件查看