Latest 0.1.2
Homepage https://github.com/RavenKite/RKAPPMonitorView
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit, Foundation
Authors

RKAppMonitorView

Version
License
Platform

介绍

一个实时监控App的FPS、CPU使用率和内存占用的小工具。

AppMonitorViewDemo

系统要求

此项目最低支持 iOS 7.0

安装

此项目支持 CocoaPods安装。

  1. 在Podfile中添加 pod 'RKAPPMonitorView'
  2. 在终端中执行 pod installpod update
  3. 在项目中 #import <RKAPPMonitorView/RKAPPMonitorView.h>

使用方法

Main Interface 为 Main.stroyboard

keyWindow.rootViewController- (void)viewDidAppear:(BOOL)animated 中添加如下代码:

#ifdef DEBUG
    RKAPPMonitorView *monitorView = [[RKAPPMonitorView alloc] initWithOrigin:CGPointMake(10, 100)];
    [[UIApplication sharedApplication].keyWindow addSubview:monitorView];
#else
#endif

Main Interface 为空

即在AppDelegate中手动创建window。
在AppDelegate中添加如下代码:

#ifdef DEBUG
    RkAPPMonitorView *monitorView = [[RKAPPMonitorView alloc] initWithOrigin:CGPointMake(10, 100)];
    [self.window addSubview:monitorView];
#else

#endif

参考

此项目参考了YYFPSLabel的实现。

Latest podspec

{
    "name": "RKAPPMonitorView",
    "version": "0.1.2",
    "summary": "u4e00u4e2au5b9eu65f6u76d1u63a7APPu7684FPSu3001CPUu4f7fu7528u7387u548cu5185u5b58u5360u7528u7684u5c0fu5de5u5177",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u674eu6c9bu502c": "[email protected]"
    },
    "homepage": "https://github.com/RavenKite/RKAPPMonitorView",
    "source": {
        "git": "https://github.com/RavenKite/RKAPPMonitorView.git",
        "tag": "0.1.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source_files": "RKAPPMonitorView/Classes/**/*",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This