Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-15442

QML Profiler Events view displays more than 100% execution time for recursive functions

XMLWordPrintable

    • 334e4f32d9c3f95a52e20ee276b7d841f756419d

      1. Open the project qtdeclarative\examples\quick\demos\samegame\samegame.pro from Qt5's sources.
      2. Disable profiling for the QML Profiler.
      3. Run the project in QML Profiler.
      4. Click "1 Player".
      5. Very quickly:
        1. Enable Profiling.
        2. Click a block in the app.
        3. Disable profiling.
      6. See the recorded data in the Events view.
        You might see an event with a supposed execution time of more than 100%:
        Location	Type		Time in Percent	Total Time	Calls	Mean Time	Median Time	Longest Time	Shortest Time	Details
        samegame.js:174	JavaScript	269.80 %	42.995 ms	53	811.233 µs	58.860 µs	8.863 ms	15.093 µs	floodFill
        GameArea.qml:95	Signal		100.00 %	15.936 ms	1	15.936 ms	15.936 ms	15.936 ms	15.936 ms	onClicked: { if (puzzleTextBubble.opacity == 1) { puzzleTextBubble.opacity = 0; Logic.finishLoadingMap(); } else if (!swapping) { Logic.handleClick(mouse.x,mouse.y); } }
        <program>			100.00 %	15.936 ms	1	15.936 ms	15.936 ms	15.936 ms	15.936 ms	Main Program
        

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ulherman Ulf Hermann
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes