Latest 0.0.4
Homepage https://github.com/vviicc/MFPerformanceMonitor
License MIT
Platforms ios 7.0, requires ARC
Dependencies PNChart, ZipArchiveV, MLeaksFinder
Authors

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文件查看

Latest podspec

{
    "name": "MFPerformanceMonitor",
    "version": "0.0.4",
    "homepage": "https://github.com/vviicc/MFPerformanceMonitor",
    "summary": "A tool to monitor ios app performance such as memory and cpu.",
    "license": "MIT",
    "authors": {
        "Vic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/vviicc/MFPerformanceMonitor.git",
        "tag": "0.0.4"
    },
    "platforms": {
        "ios": "7.0"
    },
    "preserve_paths": "thirdParty/LibXL.framework",
    "vendored_frameworks": "thirdParty/LibXL.framework",
    "source_files": "**/*.{h,m}",
    "resources": [
        "resources/*.png"
    ],
    "public_header_files": "*.{h}",
    "requires_arc": true,
    "dependencies": {
        "PNChart": [],
        "ZipArchiveV": [],
        "MLeaksFinder": []
    },
    "xcconfig": {
        "FRAMEWORK_SEARCH_PATHS": ""$(PODS_ROOT)/MFPerformanceMonitor/thirdParty/"",
        "OTHER_LDFLAGS": "$(inherited) -lz -lstdc++ -framework "LibXL""
    }
}

Pin It on Pinterest

Share This