summaryrefslogtreecommitdiffstats
path: root/src/corelib/tracing/qctflib.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move CTF tracing plugin to plugins directoryAntti Määttä2023-03-211-327/+0
| | | | | | | | | | | 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-101-12/+28
| | | | | | | | | | | - 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: Fix plugin cleanupAntti Määttä2023-02-101-0/+6
| | | | | | | | | | 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-131-0/+303
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>