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 Profiling for new app with QtQuickControls 2
Forum Updated to NodeBB v4.3 + New Features

QML Profiling for new app with QtQuickControls 2

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 1.1k Views 3 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.
  • H Offline
    H Offline
    happyprogrammer
    wrote on last edited by happyprogrammer
    #1

    Hello, I'm doing QML profiling to compare the launch time before & after I update my app to use QtQuickControls 2. What I notice is that the "Scene Graph" is not consistent. Sometimes it shows 350ms and sometimes 230ms at the end of rendering. This is hard tell if my upgrade to QtQuickControls 2 is actually more speedy than QtQuickControls 1.2

    Any ideas? Thank you.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      QML in Qt 5.9 is cached - so first run after compilation will be slower than all subsequent ones.

      (Z(:^

      H 1 Reply Last reply
      2
      • sierdzioS sierdzio

        QML in Qt 5.9 is cached - so first run after compilation will be slower than all subsequent ones.

        H Offline
        H Offline
        happyprogrammer
        wrote on last edited by
        #3

        @sierdzio But I'm using Qt 5.7.1, does this version have the same behavior? So if that's the case, how would I accurately measure the startup time of my Qt app? Thanks

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          QML cache was added in Qt 5.8, so it is not affecting your startup times.

          I don't know what causes the delta you see between runs, then.

          (Z(:^

          1 Reply Last reply
          0
          • H Offline
            H Offline
            happyprogrammer
            wrote on last edited by
            #5

            The other problem I see is that Qt Creator crashes most of the time when I click stop analyzing.

            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