Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Simple timing testing of signals/slots



  • 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?



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



  • 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...


Log in to reply