Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65190

[Reg 5.7 -> 5.8] QML profiler integration duplicates signal handler locations

    XMLWordPrintable

Details

    • 529b4484e558376598b5bf12a3cfae6fd3969827

    Description

      Profile some QML with signal handlers. Each invocation of the signal handler will show up as its own distinct location in QML profiler. They should be aggregated. Apparently a separate location is generated for each QQuickItem that emits the signal. So the following code will show 5 separate signals, although it should only show one:

      import QtQuick 2.7
      import QtQuick.Window 2.2
      
      Window {
          id: window
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          Repeater {
              model: 5
              Rectangle {
                  height: 10
                  width: window.width
                  onWidthChanged: console.log(width);
              }
          }
      }
      

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes