summaryrefslogtreecommitdiffstats
path: root/src/corelib/tracing/qctf.cpp
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-301-0/+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-261-7/+3
| | | | | | | | | | | | 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>
* Move CTF tracing plugin to plugins directoryAntti Määttä2023-03-211-1/+1
| | | | | | | | | | | 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>
* Add CTF tracing backendAntti Määttä2023-01-131-0/+119
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>