summaryrefslogtreecommitdiffstats
path: root/src/corelib/tracing
Commit message (Collapse)AuthorAgeFilesLines
* QCtf: use QDirListing directly instead of QDir::entryList()Ahmad Samir2024-06-301-8/+9
| | | | | | | | | | This circumvents the cost of constructing a QDir and a QStringList. Drive by: QString::contains() has an overload for QL1SV. Also use qEnvironmentVariable() since we want a QString anyway. Change-Id: I37451d27dfa52bde4793b1a50cea532f88dcd1fd Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Fix CTF with static buildAntti Määttä2023-10-302-2/+27
| | | | | | | | | - Do not require feature library - Load static plugin Change-Id: I6c3ec72e20b9f2800c1d350dac795fccbb8c381e Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* Core: include mocsMårten Nordheim2023-07-071-0/+2
| | | | | Change-Id: If116c090450836007dca826fba1754058fc754c0 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
* Fix crash at exit when tracingAntti Määttä2023-04-262-7/+4
| | | | | | | | | | | | The crash is caused by the cleanup sending trace messages when the plugin has already been destroyed. Add shutdown callback to the plugin to indicate this has happened. We can't use signals since that also generetes trace event. Pick-to: 6.5 Change-Id: I2e490fc51c2aaa97c240c1496a528a6ff6077bd0 Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
* CTF: Use Q_DISABLE_COPY for QCtfLibAntti Määttä2023-03-281-0/+2
| | | | | | | | | Pick-to: 6.5 Change-Id: Ife1d0670486ac0820b53c9e015249115685e4997 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* Move CTF tracing plugin to plugins directoryAntti Määttä2023-03-219-635/+13
| | | | | | | | | | | A coming change to support streaming requires networking so having it in corelib is dubious. Pick-to: 6.5 Change-Id: Idc25abe23b5ed07823d749294796c9f318ef1744 Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
* CTF: Create directory ust if it doesn't existAntti Määttä2023-02-211-0/+2
| | | | | | | | | Pick-to: 6.5 Change-Id: I046c045a21a30eb0b6f0e883aa5b49e953f0a586 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io> Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* CTF: Fix minor problems in the implementationAntti Määttä2023-02-102-13/+29
| | | | | | | | | | | - Check if trace location is writable - Call fclose only if file is opened - Convert metadata to QByteArray in one place. - Add constraint to array operator. Pick-to: 6.5 Change-Id: Id01998fe8e754dab7a4b7d8ce1361ac822d01390 Reviewed-by: Antti Määttä <antti.maatta@qt.io>
* CTF: Move event metadata generation to the wrapperAntti Määttä2023-02-101-2/+2
| | | | | | | | | | | This fixes the metadata generation when cross compiling. The metadata needs to be generated based on the type info of the target. Currently the metadata is generated in the tool based on the host type info. Task-number: QTBUG-110270 Pick-to: 6.5 Change-Id: Ibcdcbd690620afc532d6007cf036229342bdcc31 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* CTF: Fix plugin cleanupAntti Määttä2023-02-103-1/+22
| | | | | | | | | | Handle cleanup of the CTF plugin correctly. The cleanup causes recursive trace event so the plugin needs to handle this. Pick-to: 6.5 Change-Id: Id6f4c6efe95e51332a8be97fecdf7886ba173e43 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Hatem ElKharashy <hatem.elkharashy@qt.io>
* Fix comparison sign missmatch warningAntti Määttä2023-02-011-1/+1
| | | | | | | Pick-to: 6.5 Change-Id: Id266add0a2c203c31ae76bd3dc20e625e86e5a13 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* CTF: Fix static constant types and namesAntti Määttä2023-01-241-11/+11
| | | | | | | | | | | - Convert defines to static const - Use camel case in the constants - Use size_t as type in sizes. Pick-to: 6.5 Change-Id: I06d2588bfa5211a7825f068b2c4f33bbbd2065c4 Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Add CTF tracing backendAntti Määttä2023-01-139-0/+939
Implement platform independent tracing backend in Common trace format. This allows tracing in platforms without own/existing backend and analysing all platforms with the same tooling. The backend is the basis for further work in application level profiling area. The backend is implemented as a plugin that is loaded immediately when the application starts in order to process all trace events. The backend avoids using Qt classes so that it doesn't generate trace events itself. Adds plumbing to configure the new backend. Modifies the tracegen and tracepointgen tools to support the new backend. Task-number: QTBUG-106399 Pick-to: 6.5 Change-Id: I80711be52d4d48e1acbc72edffbdf3f379fce52a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>