Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML Profiler - Interpretation of results - Compiling section
Forum Updated to NodeBB v4.3 + New Features

QML Profiler - Interpretation of results - Compiling section

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 392 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Benjamin07 0
    wrote on last edited by Benjamin07 0
    #1

    Dear all,

    I would appreciate your help in interpreting QML profiler results on my application. By looking at the results, a lot of time is spent compiling the different qml files (and several times the same qml files).

    0_1548399866224_bcbff6a8-e77f-4259-a6b5-0711ed225be6-image.png

    What is surprising is that I use Qt Quick Compiler.

    Some more information on the context :

    • The application has been profiled on a release compilation
    • Qt Quick Compiler is enabled (through Projects > Build Steps) and seems to work since no qml files are located in the build path
    • CONFIG+=qtquickcompiler has been added to the pro file
    • All qml files are included in .qrc
    • The pro file includes the resources (RESOURCES += ...)
    • QQuickView objects in .cpp are setting the source through url : .setSource(QUrl("qrc:/...)
    • Qt version 5.11.1, MSVC2017

    Several questions:

    • Is it normal that so much time is spent on compiling qml files with Qt Quick Compiler enabled ?
    • Why are the same files compiled several times (as many times as qml object are instantiated) ?

    Thank you for any feedback you could provide...

    EDIT 2019-01-30
    More information on the problem description:

    • A given qml file is compiled as many times as the corresponding C++ object (which uses QML through QQuickView object) is instantiated. I thought it woul be compiled only once ?
    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved