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. Creation, loading and run time measurements with QML
Forum Update on Monday, May 27th 2025

Creation, loading and run time measurements with QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 4 Posters 1.2k Views
  • 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.
  • V Offline
    V Offline
    Veepee
    wrote on last edited by
    #1

    Hi

    I am trying to do a quick comparison between two different versions of Qt and would need to measure the creation time, loading and run time of a QML.

    Creation time measurements were easily measured using QML profiler. Is there a way to measure loading time and runtime of a QML content as well ?

    1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @Veepee what about profiling the QML applications? It's used even by Qt people themselves...

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      1
      • V Offline
        V Offline
        Veepee
        wrote on last edited by
        #3

        Yes, with QML Profiling, we were able to measure all the creation times but couldnt find a way to measure loading and run time measurements of QML file.

        1 Reply Last reply
        0
        • ODБOïO Offline
          ODБOïO Offline
          ODБOï
          wrote on last edited by
          #4

          Hi @Veepee,

          Component.onCompleted: {
                  var d1 = new Date(); 
          
                  // do what you need 
          
                  var d2 = new Date();
                  console.log("tasks took: " + (d2.valueOf() - d1.valueOf()) + " milliseconds");
              }
          

          LA

          6thC6 1 Reply Last reply
          1
          • Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on last edited by
            #5

            @Veepee what about contacting Risto Avila, the author of the blog posts? He may help you sharing tips or his experience so far.

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • ODБOïO ODБOï

              Hi @Veepee,

              Component.onCompleted: {
                      var d1 = new Date(); 
              
                      // do what you need 
              
                      var d2 = new Date();
                      console.log("tasks took: " + (d2.valueOf() - d1.valueOf()) + " milliseconds");
                  }
              

              LA

              6thC6 Offline
              6thC6 Offline
              6thC
              wrote on last edited by
              #6

              @LeLev i too do this for qml components' time to load along with profiler to identify script call freq's and times.

              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