Giter VIP home page Giter VIP logo

whdebugtool's Introduction

WHDebugTool

WHDebugTool介绍

Debug

1、快速使用

1.1 Pod或直接把WHDebugTool文件拖入项目

pod 'WHDebugTool', '~>2.1'

1.2 导入头文件

Pod的方式:

#import <WHDebugTool/WHDebugToolManager.h>

拖入WHDebugTool文件的方式:

#import "WHDebugToolManager.h"

1.3 调用开关方法

一行代码开启或关闭监测。

// 这个方法调用的时候会判断监测是不是处于打开的状态,如果打开了则关闭,如果没有打开就开启。
[WHDebugToolManager toggleWith:DebugToolTypeAll];

1.4 可选:也可以通过如下方式初始化和关闭

// 打开
+ (void)showWith:(DebugToolType)type;
// 关闭
+ (void)hide;

2. 参数说明

初始化方法中带有一个位移枚举参数 可以让三种监测随意组合。例如只想要监测FPS,就传入DebugToolTypeFPS,如果想多种组合:DebugToolTypeFPS | DebugToolTypeMemory | DebugToolTypeCPU

DebugToolTypeFPS    = 1 << 0,
DebugToolTypeCPU    = 1 << 1,
DebugToolTypeMemory = 1 << 2,
DebugToolTypeAll    = (DebugToolTypeFPS | DebugToolTypeCPU | DebugToolTypeMemory)

whdebugtool's People

Contributors

mademao avatar remember17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.