aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/tracing
Commit message (Collapse)AuthorAgeFilesLines
* Tracing: Fix anchor of titleChristian Stenger6 days1-1/+1
| | | | | | | | | | This elides the title correctly if the title does not fit and avoids overlapping with buttons on the title bar. Fixes: QTCREATORBUG-32905 Change-Id: I490fd1d4e7d179eccb11f5c9be34d21dbe2397b7 Reviewed-by: Ulf Hermann <[email protected]>
* Tracing: Update iconsAlessandro Portale2025-04-178-0/+0
| | | | | | | | | | | | | | | | Batch #2 of the icon update for Qt Creator 17.0. Mostly affecting QmlProfiler. src/libs/tracing/qml/ico_edit src/libs/tracing/qml/ico_rangeselected src/libs/tracing/qml/ico_rangeselection src/libs/tracing/qml/ico_selectionmode src/libs/utils/images/app-on-top src/libs/utils/images/select Task-number: QTCREATORBUG-32143 Change-Id: I81023d2e31edeeba2fd022c493928cfc4d853f9f Reviewed-by: Christian Stenger <[email protected]>
* Tracing: Re-introduce padding for ImageToolButtonAlessandro Portale2025-04-111-0/+5
| | | | | | | | | | | | | Padding is needed for a consistent appearance when using the "Relaxed" toolbar style. The first approach for padding used PaddedRectangle which is unsupported. Padding was therefore removed. This change re-introduces padding by using QtQuick.Controls.*inset Amends: 52d994e2abe198504f1777c0e9afbacc4e6d28b2 Change-Id: I9b6666fc4c17d6fda18d2fb27803b419643d0c64 Reviewed-by: Ulf Hermann <[email protected]>
* Tracing: Use QList instead of QVectorhjk2025-04-109-31/+32
| | | | | Change-Id: I5ca9464f0da54025637fdd8d4047afe582f126ec Reviewed-by: Ulf Hermann <[email protected]>
* QmlProfiler: Fix crash at startup if file creation failsEike Ziller2024-12-171-1/+2
| | | | | | | | | | | | | | | | | If opening the temporary file for QmlProfilerEventStorage fails in it's destructor, it was crashing, because the error handler tried to emit a signal on an object that wasn't even half constructed yet. Can be tested by forcing the return value of TraceStashFile::open to `false`. Delay the construction of the event storage a bit and do not set the error handler in its constructor, since nobody could connect to the signal that was sent yet anyway. Also add some checks before calling the error handler. Change-Id: I0fc1207aac447090e12f6b2342e156312e0d1d1b Reviewed-by: hjk <[email protected]>
* Utils: Turn enum StyleHelper::ToolbarStyle into an enum classAlessandro Portale2024-10-101-1/+1
| | | | | | | Needed later, to be able to forward declare it. Change-Id: I5ed13eb5dd9262a3a79457a012467906e1dd6399 Reviewed-by: Marcus Tillmanns <[email protected]>
* Merge remote-tracking branch 'origin/14.0'Eike Ziller2024-10-011-2/+1
|\ | | | | | | | | | | | | | | Conflicts: doc/qtdesignstudio/src/qtdesignstudio-toc.qdoc doc/qtdesignstudio/src/qtdesignstudio.qdoc Change-Id: I5ed7426b5d19e973dc07ed0717807c37180d611e
| * Tracing: Drop padding from ImageToolButton's backgroundUlf Hermann2024-09-271-2/+1
| | | | | | | | | | | | | | | | | | It does not seem to make much of a difference and PaddedRectangle was not supposed to be available from QtQuick.Controls. Task-number: QTBUG-129390 Change-Id: I7fdcaaef27066cb61bbd3d8e3fef3643c5f4ffa7 Reviewed-by: Alessandro Portale <[email protected]>
* | Tracing: Make TimelineModel explicitly uncreatableUlf Hermann2024-09-271-0/+1
| | | | | | | | | | | | | | Otherwise the QML engine complains about it being uncreatable. Change-Id: I955d123f8fc08a0a7350d3c86f3c524f784325ed Reviewed-by: Alessandro Portale <[email protected]>
* | Tracing: Avoid some warningsUlf Hermann2024-09-271-1/+2
|/ | | | | | | QHoverEvent::pos() is deprecated. Change-Id: I6c7460940e842c82684f9da172ba9413a951af7a Reviewed-by: Alessandro Portale <[email protected]>
* Utils: Introduce a convenience function creatorColor()hjk2024-05-291-1/+1
| | | | | | | ... forwarding to creatorTheme()->color(...) Change-Id: Iefaa043495127b3e500ed225584481d3ec0f8c1f Reviewed-by: Alessandro Portale <[email protected]>
* Tracing: fix build: theme.h: No such file or directoryThiago Macieira2024-05-141-0/+4
| | | | | | | | | | | | | | | | | | | | tracing_qmltyperegistrations.cpp:11:10: fatal error: theme.h: No such file or directory That comes from src/libs/utils/meta_types/qt6utils_custom_metatypes.json: { "classes": [ { "className": "Theme", ... ], "inputFile": "theme.h", "outputRevision": 68 }, That file is probably wrong but I don't know how to fix it. Change-Id: If05cb740b64f42eba21efffd17cf1c207c139d7e Reviewed-by: Ulf Hermann <[email protected]>
* Remove unneeded version checksEike Ziller2024-03-042-8/+0
| | | | | | | | | | | After we raised the minimum Qt version. Change-Id: Ife81a25c3c205646eece30d6dd1a95f4b97eda01 Reviewed-by: Marco Bubke <[email protected]> Reviewed-by: hjk <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Jarek Kobus <[email protected]> Reviewed-by: <[email protected]>
* Merge remote-tracking branch 'origin/12.0'Eike Ziller2023-12-192-10/+10
|\ | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs Change-Id: I937d301156dac0d20b43e7a14b41a319eff57698
| * Tracing: Fix compile errorhjk2023-12-182-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ff7d69daf in Qt base added a static assert. In file included from /data/dev/creator/src/libs/tracing/timelinetracemanager.cpp:6: In file included from /data/dev/creator/src/libs/tracing/timelinetracemanager.h:8: /data/dev/creator/src/libs/tracing/traceeventtype.h:45:1: error: static assertion failed due to requirement '!isRelocatable || std::is_copy_constructible_v<Timeline::TraceEventType> || std::is_move_constructible_v<Timeline::TraceEventType>': Timeline::TraceEventType is neither copy- nor move-constructible, so cannot be Q_RELOCATABLE_TYPE Q_DECLARE_TYPEINFO(Timeline::TraceEventType, Q_MOVABLE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/dev/qt-6/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:173:12: note: expanded from macro 'Q_DECLARE_TYPEINFO' template<> \ ^ /data/dev/qt-6/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:166:5: note: expanded from macro '\ Q_DECLARE_TYPEINFO_BODY' static_assert(!isRelocatable || \ ^ ~~~~~~~~~~~~~~~~~~~ /data/dev/creator/src/libs/tracing/traceeventtype.h:45:1: note: expression evaluates to 'false || false' Q_DECLARE_TYPEINFO(Timeline::TraceEventType, Q_MOVABLE_TYPE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /data/dev/qt-6/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:173:12: note: expanded from macro 'Q_DECLARE_TYPEINFO' template<> \ ^ /data/dev/qt-6/qtbase/include/QtCore/../../src/corelib/global/qtypeinfo.h:167:55: note: expanded from macro '\ Q_DECLARE_TYPEINFO_BODY' std::is_copy_constructible_v<TYPE > || \ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~ 1 error generated. Change-Id: I68c963f6b2856e9aca3e8be65ac177456a02a875 Reviewed-by: Ulf Hermann <[email protected]>
* | Libs: Cleanup lambdasJarek Kobus2023-12-121-3/+3
| | | | | | | | | | Change-Id: I715a124dd73f23c735dde27d3205ac7613ae04c6 Reviewed-by: hjk <[email protected]>
* | Clean up some lambdashjk2023-12-121-1/+1
| | | | | | | | | | Change-Id: Id947c0935b1aa4579e1c64d3e510db41103fbe27 Reviewed-by: Jarek Kobus <[email protected]>
* | Random warning cleanuphjk2023-12-081-7/+6
|/ | | | | | | Clang16 in C++20 mode. Change-Id: I87801e362a3ba6e38cfebd319a7aee2ed4e45568 Reviewed-by: Jarek Kobus <[email protected]>
* Fix QmlProfiler when built with Qt 6.6Eike Ziller2023-10-092-9/+9
| | | | | | | | | | | | | | qrc:/qt/qml/QtCreator/Tracing/TimelineLabels.qml:29:5: Cannot override FINAL property property bool dragging: false ^ Flickable has a `dragging` property itself, and in Qt 6.6 that leads to this error. Fixes: QTCREATORBUG-29719 Change-Id: I882e944035141622c0bdf65ee4fcb3cf145aef0d Reviewed-by: Ulf Hermann <[email protected]>
* qbs build: Clean up testing infrastructureChristian Kandeler2023-09-191-1/+1
| | | | | | | | | | | | | | - Rename ambiguously named "testsEnabled" property to "withPluginTests" and fix the wrong uses. - Move AutotestRunner out of main project file and into tests.qbs. - Move "withAutotests" property into qtc module. We cannot remove it from the main project file just yet, because some manual tests do not make use of QtcManualTest at the moment. - Do not remove the autotests from the project tree if autotests are disabled. Instead, just disable the products. Change-Id: I74a4cc717d9adbe53d37536b2565111e1617115b Reviewed-by: Christian Stenger <[email protected]>
* qbs build: Remove unneeded Project itemsChristian Kandeler2023-09-141-46/+40
| | | | | | | Also update type descriptions. Change-Id: I2b7d8814913cfb72cb8280601338ab763d8fabe6 Reviewed-by: Christian Stenger <[email protected]>
* Tracing: Fix assert when wheel zoomingEike Ziller2023-09-121-15/+20
| | | | | | | | | | | | The wheel handling code was triggering an assert in qBound when calculating the newStart, when using a touch pad. Rewrite the wheel handling to get rid of the assert and make it more similar to the text editor wheel handling. Change-Id: I0c1306d00be6b3054fb8dba9628b7758880675b0 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* CtfVisualizer: Fix computation of nesting levelEike Ziller2023-09-122-0/+49
| | | | | | | | | | | | | The computed nesting level (which row an event to show in) was solely based on begin+end events and "complete" events were ignored. Compute the rows afterwards, similar to the "parent" computation that the timeline model already does. Find the first row that is free, and use that for the row of the item. Change-Id: I890138c10f5038508da9b286b35d7bcfdf0ab64d Reviewed-by: Alessandro Portale <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
* CtfVisualizer: Do not crash/assertEike Ziller2023-09-121-2/+2
| | | | | | | | Use QTC_ASSERT. Change-Id: I621c607915f71246be1bdb02f2588ed08e37a1cd Reviewed-by: hjk <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>
* Tracing: Remove useless codeMarcus Tillmanns2023-08-154-65/+0
| | | | | | | | | | runSceneGraphTest() did nothing but create an opengl context and offscreen surface. It did nothing with the provided QSGNode. The only thing it does is make the test fail if the opengl context can't be created for instance on test machines without opengl. Change-Id: I376c3565f5afcee6e123a7ef8b9832e679e645a0 Reviewed-by: Ulf Hermann <[email protected]>
* Tracing: Follow the active toolbar styleAlessandro Portale2023-05-056-6/+21
| | | | | | | | | | | | This makes sure that the toolbar and toolbuttons in the trace resemble the look of the widget based UI in compact and relaxed toolbar style. This comes with the restriction that an already open tracing scene does only adapt to that change after an IDE restart. Task-number: QTCREATORBUG-29082 Change-Id: I6422227256d8e13658ff5565ae640e15c5e61229 Reviewed-by: hjk <[email protected]>
* Utils: Rename asynctask.{cpp,h} -> async.{cpp,h}Jarek Kobus2023-05-031-1/+1
| | | | | | | Follows AsyncTask -> Async rename. Change-Id: I37f18368ab826c9960a24087b52f6691bb33f225 Reviewed-by: hjk <[email protected]>
* Merge remote-tracking branch 'origin/10.0'Eike Ziller2023-03-291-8/+6
|\ | | | | | | | | | | | | | | | | | | Conflicts: cmake/QtCreatorIDEBranding.cmake qbs/modules/qtc/qtc.qbs src/plugins/remotelinux/genericlinuxdeviceconfigurationwidget.cpp src/tools/perfparser Change-Id: Ie5643100e0eb00e0933359dce320169b876f5634
| * Tracing: Fix category label appearance after manual reorderingAlessandro Portale2023-03-211-8/+6
| | | | | | | | | | | | | | | | | | | | The drag item remained visible although the item height was supposedly set to 0. This fix uses the visibility property in order to show/hide the drag item. Fixes: QTCREATORBUG-28930 Change-Id: I2233eed585f94eab5d71e0aa2743b791390c249c Reviewed-by: Ulf Hermann <[email protected]>
* | Tracing: Use QtConcurrent invocation for async runJarek Kobus2023-03-131-15/+21
|/ | | | | | | Change-Id: I40dea7276ed9d54c7ce898f0463df05929576648 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* Translations: Change translation context prefix from "::" to "QtC::"Alessandro Portale2023-02-107-21/+21
| | | | | | | lupdate would be confused by translation contexts starting with :: Change-Id: Ie95e73436fd3cafc80a8e89f908efadc747e644c Reviewed-by: hjk <[email protected]>
* Translations: Prefix translation contexts for libraries with "::"Alessandro Portale2023-01-267-20/+21
| | | | | Change-Id: I0631ad6fdc9f341a162d879e54ff09fbdb74398e Reviewed-by: hjk <[email protected]>
* Remove GPL-3.0+ from license identifiersKai Köhne2023-01-0672-72/+72
| | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <[email protected]>
* CMake build: Use version-less Qt targetsEike Ziller2023-01-051-3/+3
| | | | | | | | | Since we do not support Qt < 5.15 anymore, and as a first step for getting rid of our special FindQt5.cmake. Change-Id: Icc5dbaf9b0a3a622b1f609ff114b9decb6d2856c Reviewed-by: <[email protected]> Reviewed-by: Cristian Adam <[email protected]>
* tracing: Remove foreachArtem Sokolovskii2023-01-041-4/+4
| | | | | Change-Id: I74f17198a9f98f958924214ad2058e295b313373 Reviewed-by: Jarek Kobus <[email protected]>
* Merge remote-tracking branch 'origin/9.0'Eike Ziller2022-11-231-2/+2
|\ | | | | | | Change-Id: I69ebd63cbd780ed4edb3873acfc8aac208933032
| * tst_tracing_*: Fix build in certain configurationsEike Ziller2022-11-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are Linux distributions that (at least for building packages) separate the development packages for the various Qt modules. So, to find the include <QtQml/qqml.h> in timelinemodel.h when building the test, a dependency on QtQml is required. Pass the dependency down to everyone depending on the tracing lib. Fixes: QTCREATORBUG-28434 Change-Id: I58a534a9c25f1f6ecfc10a9ce8292b5983cdcbae Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* | Replace QML Profiler's RangeDetails close button by collapse buttonXavier BESSON2022-11-034-14/+10
|/ | | | | | Change-Id: If60016de41dbec25220cab2f0e40cc3fbd911f09 Reviewed-by: <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
* Tracing: Fix several occurrences of "Unqualified access" in QML codeAlessandro Portale2022-10-1715-113/+126
| | | | | | | | Courtesy of qmllint via qmlls. Change-Id: I28c0a8f7ec17a93831fd1f5d9d2de5547a633965 Reviewed-by: <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
* Port from qAsConst() to std::as_const()Marc Mutz2022-10-071-3/+3
| | | | | | | | | | | | | | We've been requiring C++17 since Qt 6.0, and our qAsConst use finally starts to bother us (QTBUG-99313), so time to port away from it now. Since qAsConst has exactly the same semantics as std::as_const (down to rvalue treatment, constexpr'ness and noexcept'ness), there's really nothing more to it than a global search-and-replace. Task-number: QTBUG-99313 Change-Id: I88edd91395849574436299b8badda21bb93bea39 Reviewed-by: hjk <[email protected]>
* Tracing: Convert to using Tr::trAlessandro Portale2022-09-198-24/+28
| | | | | | Change-Id: If2dd9ac8dfd54bb2305a8149acce401f854fa2dc Reviewed-by: hjk <[email protected]> Reviewed-by: <[email protected]>
* Merge remote-tracking branch 'origin/8.0'Eike Ziller2022-09-192-7/+24
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/HelperWidgets/ColorEditor.qml share/qtcreator/qmldesigner/propertyEditorQmlSources/imports/StudioTheme/icons.ttf src/libs/utils/fileutils.cpp src/plugins/qmldesigner/components/edit3d/edit3dwidget.cpp src/plugins/qmldesigner/designercore/include/abstractview.h src/plugins/qmldesigner/designercore/include/nodemetainfo.h src/plugins/qmldesigner/designercore/metainfo/nodemetainfo.cpp src/plugins/qmldesigner/designercore/model/model_p.h src/plugins/remotelinux/linuxdevice.cpp tests/auto/utils/fileutils/tst_fileutils.cpp Change-Id: I26a21e2523d3d725fdb8c548a531cdbdaeaeca20
| * Optimize TimelineModelPrivate::incrementStartIndicesAntti Määttä2022-09-132-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces the overhead of the function by a factor of ~500(depending on the event count) by having the Range(start) index to the RangeEnd so that we can only increment the RangeEnds that actually need to be incremented. Fixes: QTCREATORBUG-28162 Change-Id: I9daa711d0a1d960b232c5ed30564271daa68d1aa Reviewed-by: Tomi Korpipää <[email protected]> Reviewed-by: Janne Koskinen <[email protected]> Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Qt CI Bot <[email protected]>
* | Remove outdated version checksRobert Löhning2022-09-121-1/+1
| | | | | | | | | | | | Change-Id: I972a7fe0842a0310ba5df1233a4f417627dad87c Reviewed-by: Eike Ziller <[email protected]> Reviewed-by: <[email protected]>
* | Libs: Fix Qbs buildChristian Stenger2022-09-011-1/+1
| | | | | | | | | | | | | | Amends a621aa1d8bcc. Change-Id: If5276e5558bf8139286c2084400eac915253c7f7 Reviewed-by: Alessandro Portale <[email protected]>
* | Libs: Add *tr.h filehjk2022-09-013-0/+17
| | | | | | | | | | Change-Id: I827d3bc1fd24cf2e3fb6dbe9d255f12cc91cd409 Reviewed-by: Alessandro Portale <[email protected]>
* | Use SPDX license identifiersLucie Gérard2022-08-2671-1704/+142
| | | | | | | | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <[email protected]>
* | Tracing: Avoid copying unneeded parts of a Iconhjk2022-08-041-16/+16
| | | | | | | | | | | | Change-Id: I975fea87ce94661cbc61caa08d3da5bb6596cf26 Reviewed-by: Christian Stenger <[email protected]> Reviewed-by: <[email protected]>
* | Tracing/Qml|PerfProfiler/CtfVisualizer: Move QML modules to :/qt/qmlAlessandro Portale2022-07-206-12/+13
| | | | | | | | | | | | | | | | We don't want to dedicate the whole resource file system to QML. Change-Id: I4c7e4af7aeeab00f44c5244e99949a90abb032cf Reviewed-by: Alessandro Portale <[email protected]> Reviewed-by: Ulf Hermann <[email protected]>
* | Tracing: Add some civilization to TimeMarks.qmlUlf Hermann2022-07-191-11/+14
| | | | | | | | | | | | | | | | Use concrete types and annotate JavaScript methods. Change-Id: If636741181d0ae28605f3f37b46d9011130f5988 Reviewed-by: Ulf Hermann <[email protected]> Reviewed-by: Alessandro Portale <[email protected]>