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