diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2018-05-09 20:52:29 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2018-06-28 20:40:33 +0000 |
commit | dbcaa6d01ed6fd510f8b36bbe69fc1c9d8e21d88 (patch) | |
tree | 39b531e90e0d717562705db6ca68172b3e31d4f1 /src/corelib/qtcore.tracepoints | |
parent | 5e39b832e23889af0a5d39586fd3ccf0b1882667 (diff) |
Tracepoints: add tracing for QEvents
Add tracepoints in all the main codepaths for event handling:
* QEvent ctors/dtor
* QCoreApplication::postEvent, sendEvent and sendSpontaneousEvent
* QCoreApplication / QApplication::notify, and around the handling
of event filters as well
I'm switching the name of the tracepoints themselves to have the
very same casing of the functions in Qt's own source code, this
improves readability a lot. The pre-existing ones will be changed
in an upcoming patch.
Change-Id: Iae2ba2bfdd76a82c85445bb5b86434e910427a70
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/corelib/qtcore.tracepoints')
-rw-r--r-- | src/corelib/qtcore.tracepoints | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/qtcore.tracepoints b/src/corelib/qtcore.tracepoints index e6b666ac74..06b7d70f9c 100644 --- a/src/corelib/qtcore.tracepoints +++ b/src/corelib/qtcore.tracepoints @@ -3,3 +3,18 @@ qcoreapplicationprivate_init_exit() qfactoryloader_update(const QString &fileName) qlibraryprivate_load_entry(const QString &fileName) qlibraryprivate_load_exit(bool success) + +QEvent_ctor(QEvent *event, int type) +QEvent_dtor(QEvent *event, int type) + +QCoreApplication_postEvent_entry(QObject *receiver, QEvent *event, int type) +QCoreApplication_postEvent_event_compressed(QObject *receiver, QEvent *event) +QCoreApplication_postEvent_event_posted(QObject *receiver, QEvent *event, int type) + +QCoreApplication_sendEvent(QObject *receiver, QEvent *event, int type) +QCoreApplication_sendSpontaneousEvent(QObject *receiver, QEvent *event, int type) + +QCoreApplication_notify_entry(QObject *receiver, QEvent *event, int type) +QCoreApplication_notify_event_filtered(QObject *receiver, QEvent *event, int type) +QCoreApplication_notify_before_delivery(QObject *receiver, QEvent *event, int type) +QCoreApplication_notify_after_delivery(QObject *receiver, QEvent *event, int type, bool consumed) |