[Interest] [Android] Profiling QML application

Ben Lau xbenlau at gmail.com
Sun Jan 19 11:55:35 CET 2014


On 15 January 2014 00:07, Ben Lau <xbenlau at gmail.com> wrote:

>
>
> On 13 January 2014 20:08, Koehne Kai <Kai.Koehne at digia.com> wrote:
>
>>
>> > -----Original Message-----
>> > From: interest-bounces+kai.koehne=digia.com at qt-project.org
>> > [mailto:interest-bounces+kai.koehne=digia.com at qt-project.org] On
>> Behalf Of
>> > Ben Lau
>> > Sent: Sunday, January 12, 2014 5:53 PM
>> > To: interest at qt-project.org
>> > Subject: [Interest] [Android] Profiling QML application
>> >
>> > Hi ,
>> >
>> > I got a performance problem in loading QML in Android . Therefore I
>> would
>> > like to run profiler on QML itself. However, when I launch the QML
>> profiler
>> > within QT creator. The process hang on :
>> >
>> > "D/Qt      (14973): qtcpserverconnection.cpp:173
>> > (voidQTcpServerConnection::listen()): QML Debugger: Waiting for
>> > connection on port 61428..."
>>
>> That's with Qt Creator 3.0? Please file a bug ...
>>
>> Anyhow, as a 'workaround' you should be able to profile by launching the
>> app yourself with e.g. -qmljsdebugger=port:61428,block argument, and then
>> connect from Qt Creator with Analyze->Qml Profiler(external) ...
>>
>> Regards
>>
>> Kai
>>
>
> Hi Kai,
>
> Thanks for your reply. Then I have another question.. how can I assign the
> argument to an Android application?
>
> I have tried to use `adb shell` and launch the application by :
>
> $ am start -n mypackage/org.qtproject.qt5.android.bindings.QtActivity -e
> applicationArguments '-qmljsdebugger=port:61428'
>
> But it is still not working. The result of  QApplication::arguments()
> don't even contains the `-qmljsdebugger=port:61428` parameter.
>
> (p.s I will file a bug for Qt Creator)
>
>
I have found the solution. The command line to start Android application is
correct. I just need to run adb to setup the port forward then the QML
profiler (external) will works.

I guess Qt Creator didn't handled the port forward.

The command:
adb forward tcp:61428 tcp:61428
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140119/a6e00412/attachment.html>


More information about the Interest mailing list