On 15 January 2014 00:07, Ben Lau <xben...@gmail.com> wrote: > > > On 13 January 2014 20:08, Koehne Kai <kai.koe...@digia.com> wrote: > >> >> > -----Original Message----- >> > From: interest-bounces+kai.koehne=digia....@qt-project.org >> > [mailto:interest-bounces+kai.koehne=digia....@qt-project.org] On >> Behalf Of >> > Ben Lau >> > Sent: Sunday, January 12, 2014 5:53 PM >> > To: interest@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
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest