Commit Graph

13 Commits

Author SHA1 Message Date
Eike Ziller
646c7860cb Merge remote-tracking branch 'origin/4.11'
Conflicts:
	src/plugins/genericprojectmanager/genericprojectplugin.cpp
	src/plugins/projectexplorer/environmentaspect.cpp
	src/plugins/projectexplorer/environmentaspect.h
	src/plugins/projectexplorer/environmentaspectwidget.cpp

Change-Id: Id21d62cf14419febd1e06c9b429fcdf4501c0eaf
2019-11-11 12:58:11 +01:00
Eike Ziller
34e8f58c47 Fix lupdate issues
Change-Id: Ib0cbb96a1a4857db5724f9d1e316b97bf2827dbd
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-11-04 14:06:09 +00:00
Tim Henning
8d91258cfa Tracing: CtfVisualizer: Add percentage of total time to statistics
Adds a column for the percentage of the time of an event to the total
measurement time in percent.

Change-Id: Ic3298b4ef6f34cb893edd987e645c7cfb67458b5
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-10-24 08:48:10 +00:00
Tim Henning
1673e692c5 Tracing: CtfVisualizer: Apply thread restrictions to statistics, too
The statistics are now also filtered by the selected threads. If no
thread is selected, the statistics are presented for all threads combined.
This fixes a bug with double counted events, too.

Change-Id: I9afa0bf5bc85ccf363e00600e75001c0ab3f2e8a
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-10-24 08:47:57 +00:00
Tim Henning
b90200cb19 Tracing: CtfVisualizer: Add menu to restrict view to certain threads
Add a new dropdown menu to select which threads should be displayed.
If no threads are selected, all are shown (this is why the word
'restriction' was chosen). At the moment this only affects the
timeline view, see the follow up for the statistics view.

Change-Id: Ib3b08ea895e852189156e23feb8dea5f843cceb3
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-10-24 08:47:39 +00:00
Tim Henning
ee7aad5719 Tracing: CtfVisualizer: Fix and extend counter details
Add more information in the details popup for counters
(e.g. CPU usage) like current value, min and max values.
Also fixes that the start time of a counter element wasn't
displayed.

Change-Id: If6e605205c680efe0f1be9a97b1cc01a762276ff
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-10-24 08:47:24 +00:00
Ulf Hermann
b4bc204a7d CtfVisualizer: Avoid compile warning
Column::COUNT should not show up as actual column, but the compiler
doesn't know.

Change-Id: I68eea5c73a95bd45378f88c505f0cefed62ce8ab
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2019-10-21 12:26:56 +00:00
Milian Wolff
be61acffe7 Don't link against QtSupport in CTF Visualizer plugin
Change-Id: I03e4e3d4a2c687ba5841987318eee569c3fa15c4
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-09-30 20:23:52 +00:00
Milian Wolff
7d1b48f5ee Compile ctfvisualizer plugin with CMake too
Change-Id: I746bda8bae7104dc79ebe0873cb75b052500174d
Reviewed-by: Tim Henning <tim.henning@kdab.com>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-09-19 07:16:28 +00:00
David Schulz
b4dd2ea2cc CtfVisualizer: Fix qbs build windows
Change-Id: I6be07728475e8bf3197babbeff548ef86a5d6a11
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
2019-09-03 12:32:06 +00:00
hjk
6cb1268f49 CtfVisualizer: Remove unused signal
Change-Id: I29c47b279dcf1002fa1ffabcb0cd1f2865d4c683
Reviewed-by: Milian Wolff <milian.wolff@kdab.com>
2019-09-03 12:30:29 +00:00
Christian Stenger
c7b84d821b Add Qbs build file for CtfVisualizer plugin
Change-Id: I90de2ebbcd7e8fae351b7a4a6241bf64b45a7904
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-09-02 13:13:17 +00:00
Tim Henning
7fec418205 Tracing: Add Chrome Trace Format Visualizer plugin
This new plugin adds a viewer for Chrome Trace Format (CTF) files
(aka Trace Event Format). It uses the same UI components as the
QML Profiler timeline and the Perf Profiler.

The Trace Event Format is generated by different kinds of tracing tools.
Usually the files are display with the trace-viewer, built into Chrome
(chrome://tracing). This plugin was developed because of the high memory
usage of trace-viewer, which makes it difficult to use with trace files
bigger than 100 MB.

The plugin fully supports all event types used in data generated by
LTTng, converted to CTF by https://github.com/KDAB/ctf2ctf.
Some of the more advanced event types used for example in Android system
traces, though, are not supported. The viewer will silently ignore
unsupported event types.

Supported Event Types:
- Begin, End, Duration and Instant events
- Counter events (graphs)
- Metadata events (process and thread name)

The plugin uses nlohmann/json instead of QJson because of the ~128 MB
object size limit by QJson.

[ChangeLog][Tracing][CtfVisualizer] Added Chrome Trace Format Visualizer plugin

Change-Id: I5969f7f83f3305712d4aec04487e2403510af64b
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2019-08-29 13:37:04 +00:00