App--kmcgeigercounter problem detection

Source: Internet
Author: User

Introduced:

Kmcgeigercounter is an iOS frame-rate calculator that, like the Geiger counter, records once when the animation loses a frame. Dropped frames are usually invisible, but it's hard to tell the difference between 55fps and 60fps, and Kmcgeigercounter lets you see a 5-frame drop. This can be used to detect the extent of the app's stutter.

Use:

Kmcgeigercounter is very simple to use:

[Kmcgeigercounter sharedgeigercounter].enabled = YES;

Description

Lag: Smooth: more fluent:

When the animation loses a frame, it is recorded once, that is, the higher the number on the left, the more the app is not fluent, the opposite if the top of the area is basically the gray number does not change how to explain the more fluent app

: By contrast, when we load image data from the Web, the app uses it to compare the numbers on the left side of the card to a significantly larger size, so you can check the app's lag by this way.

Use Note:

1->you should remove kmcgeigercounter before shipping to the APP Store. It can ' t be good for battery life.

You should remove this kmcgeigercounter before the app shelves to AppStore because he's not good with the battery and he thinks it's not beautiful.

2The IOS Simulator doesn ' t simulate device performance, so consider enabling the tool is only for device builds:

The iOS simulator does not emulate the performance of a real machine, so consider only the code needed to use it when you are using it: (I think both the real machine and the simulator are available)

#if ! Target_iphone_simulator= YES; #endif

Address: Kmcgeigercounter Demo (extract code: 0522)

PS: Because the official demo has written more complex code in the Didfinishlaunchingwithoptions method and the SDK in Xcode7 and above does not allow for overly complex operations before setting up Rootviewcontroller So the program has been unable to start normally need to add [kmcgeigercounter sharedgeigercounter].enabled = YES in the controller's Viewdidload method to start the test normally

App--kmcgeigercounter problem detection

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.