Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Simple timing testing of signals/slots
Forum Updated to NodeBB v4.3 + New Features

Simple timing testing of signals/slots

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 3.1k 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.
  • J Offline
    J Offline
    jarred
    wrote on last edited by
    #1

    Hello,

    I am trying to perform some simple performance testing regarding Qt's signals/slots mechanism.For example, I would like to see how long it takes for a slot attached to a pushbutton to be called once the release signal is raised.

    I have tried to inherit the Pushbutton and redefine the release() function, but that did not work out very well. Are there any other simple methods?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      You must modify the sources for the push button and add the timing at the place where the signal is emitted.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dangelog
        wrote on last edited by
        #3

        Are you planning to profile the signal/slot system itself or in particular what QPushButton does? In the former case, you can just write your signal and slots...

        Software Engineer
        KDAB (UK) Ltd., a KDAB Group company

        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