GT Mobile Phone Performance Test Tool II: Configuration in the project

Source: Internet
Author: User

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.

    • GT SDK: gt.embeddedframework_v2.2.3.tar.gz

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

    1. Libz.dylib

    2. Libsqlite3.dylib

    3. Security.framework

    4. Coretelephony.framework

    5. Adsupport.framework

    6. Audiotoolbox.framework

    7. Systemconfiguration.framework

    8. Quartzcore.framework

    9. Coregraphics.framework

    10. 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

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.