Hello Christian, 
I assume Curtis meant the qml profiler. 
 
Using the qml profiler in qtCreator with wince is a bit tricky , but not much.
 
You need to compile your program with qml debugging support.
 

If you use qmake, you can add the configuration parameters to the project .pro file:

  • CONFIG+=qml_debug

If you use some other build system, you can pass the following defines to the compiler:

  • QT_QML_DEBUG
To do the actual profiling follow these steps:
 
1. in your qt kit settings for the ce device, set device type to "Linux Generic Device"
2. Click the Mange Button in device row and in the upcoming dialog enter the ip address of the ce device as hostname, then click ok.
3. Choose menu item Analyzer/Qml Profiler (External)
4. a dialog box opens, choose your ce qt kit and enter 12345 as portnumber
5. make a telnet connection to your device and start your program like  
    \<path>\myprogram.exe -qmljsdebugger=port:12345,block
6. In the open qml profiler dialog box, press ok.
 
Regards,
Gunnar Roth
 
Gesendet: Donnerstag, 05. November 2015 um 08:33 Uhr
Von: "Christian Nielsen" <christian.niel...@ivolve.com>
An: "Curtis Mitch" <mitch.cur...@theqtcompany.com>, "interest@qt-project.org" <interest@qt-project.org>
Betreff: Re: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

Hi Curtis,

 

The application appears to start “instantly” on my Windows workstation. The issue is only apparent when the application is run on the Windows CE device. Unfortunately we have to use Visual Studio 2008 to compile the application for that device. I am not yet familiar enough with the tool chain to know how to hook up a profiler in that environment.

 

Christian Nielsen | Senior Development Engineer

iVolve Pty Ltd  |  www.ivolve.com

p. +61 7 3253 6700

 

 

From: Curtis Mitch [mailto:mitch.cur...@theqtcompany.com]
Sent: Thursday, 5 November 2015 17:25
To: Christian Nielsen; interest@qt-project.org
Subject: RE: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

 

Have you tried using the profiler in Creator?

 

From: Interest [mailto:interest-boun...@qt-project.org] On Behalf Of Christian Nielsen
Sent: Thursday, 5 November 2015 7:52 AM
To: interest@qt-project.org
Subject: [Interest] Why does a single Text item increase start-up time of QML application by 21 seconds?

 

Hi,

 

We are struggling with very long start-up time of our application.

 

Some details:

Treq M4 screen, 624 MHz ARM

Windows CE 6.0 R3

Qt 5.4 shared libraries

No OpenGL ES 2 support so using 2D Renderer

 

In order to find the bottleneck we made some simple test applications. Here are the descriptions with measured start-up times:

 

Qt Widget application with single label: < 3 s

QQuickView with no content: < 3s

QQuickView with single Rectangle: < 3s

QQuickView with single Text item: ~24 s

QQuickView with two Text items:  ~24s

 

I am thinking that the issue is not the loading of the dlls. Because Widget application and Qt Quick Rectangle application loads fast enough.

The issue is not parsing QML. These sample QML files are just a few lines long.

It is not the instantiation of the Text item. Because adding a second Text item is instant.

So what can it be?

 

Thanks in advance

-Christian

 

 

 

 

_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to