GT Demo Official Sample document Http://gt.qq.com/docs/i/GTiOSUserGuide.pdf
Practice the GT process in cloud notes
The GT framework is embedded in the Cloud Notes project:
Step1 Download the framework SDK
http://gt.qq.com/download.html
iOS platform
The latest release version is v2.2.3 and the release date is August 26, 2015.
Download the framework to a local directory to save;
STEP2 Configuration Frameword Engineering
Add Gt.embeddedframework to the project code under test
In the Cloud Note project, drag and drop the gt.embeddedframework into the location shown (the third-party SDK in the Cloud Note project is unified under Sdkexport)
Location (open project in Xcode)
650) this.width=650; "src=" http://note.youdao.com/yws/res/1628/WEBRESOURCEeeb5aca386a9d9e764cd90da847e2413 "alt=" Webresourceeeb5aca386a9d9e764cd90da847e2 "/>
STEP3 Add the system framework that the gt.embeddedframework needs to reference,
As shown in the following list of 10
Libz.dylib
Libsqlite3.dylib
Security.framework
Coretelephony.framework
Adsupport.framework
Audiotoolbox.framework
Systemconfiguration.framework
Quartzcore.framework
Coregraphics.framework
Uikit.framework
To add the following method, first open the interface:
650) this.width=650; "src=" Http://note.youdao.com/yws/res/1637/WEBRESOURCEb4372cacd24f22347edf8b8fddb91ee0 "alt=" Webresourceb4372cacd24f22347edf8b8fddb91 "/>
After opening, look for the previous requirements of the 10 framework, if it already exists, do not add, if not exist, click on the following + to add
650) this.width=650; "src=" http://note.youdao.com/yws/res/1641/WEBRESOURCEdcd54290aae3ef45375acb451576291d "alt=" webresourcedcd54290aae3ef45375acb4515762 "/>
Make sure the 10 frameworks above are on the list!
============ Cloud Notes Project embedded in GT framework complete =========
Next:
To initialize the GT in a project
step1 referencing header files in the project startup file
Add in YNOTEAPPDELEGATE.M
#include <GT/GT.h>
Step2 in the ynoteappdelegate.m.
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions Add a call to the GT initialization method at the end of the method
Gt_debug_init; # Initialize GT
return YES;
After the simple operation of the above two steps, the GT initialization code is added to complete;
Re-build-run the project projects to be tested, you can use the GT!
The GT will exist as part of the project being tested. When the GT project starts, the GT also starts. The GT also withdrew when the project was tested.
Run the project (real machine or simulator), after the project starts, as shown in, display the GT interface, you can set parameters and statistics:
650) this.width=650; "src=" HTTP://NOTE.YOUDAO.COM/YWS/RES/1665/WEBRESOURCE17755CA7E55AC8A76EF8243A85014DCB "alt=" webresource17755ca7e55ac8a76ef8243a85014 "/>
GT Mobile Phone Performance Test Tool II: Configuration in the project