blob: f82ec5c9f35a8c92ed2edd74269fc782e4d63ac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
if(WITH_TESTS)
set(TEST_SOURCES
tests/perfprofilertracefile_test.cpp tests/perfprofilertracefile_test.h
tests/perfresourcecounter_test.cpp tests/perfresourcecounter_test.h
tests/tests.qrc
)
else()
set(TEST_SOURCES "")
endif()
set(PERFPROFILER_CPP_SOURCES
perfconfigeventsmodel.cpp perfconfigeventsmodel.h
perfdatareader.cpp perfdatareader.h
perfevent.h
perfeventtype.h
perfloaddialog.cpp perfloaddialog.h
perfprofiler.qrc
perfprofilerconstants.h
perfprofilerflamegraphmodel.cpp perfprofilerflamegraphmodel.h
perfprofilerflamegraphview.cpp perfprofilerflamegraphview.h
perfprofilerplugin.cpp
perfprofilerruncontrol.cpp perfprofilerruncontrol.h
perfprofilerstatisticsmodel.cpp perfprofilerstatisticsmodel.h
perfprofilerstatisticsview.cpp perfprofilerstatisticsview.h
perfprofilertool.cpp perfprofilertool.h
perfprofilertracefile.cpp perfprofilertracefile.h
perfprofilertracemanager.cpp perfprofilertracemanager.h
perfprofilertraceview.cpp perfprofilertraceview.h
perfprofiler_global.h
perfprofilertr.h
perfresourcecounter.h
perfrunconfigurationaspect.cpp perfrunconfigurationaspect.h
perfsettings.cpp perfsettings.h
perftimelinemodel.cpp perftimelinemodel.h
perftimelinemodelmanager.cpp perftimelinemodelmanager.h
perftimelineresourcesrenderpass.cpp perftimelineresourcesrenderpass.h
perftracepointdialog.cpp perftracepointdialog.h
)
add_qtc_plugin(PerfProfiler
CONDITION TARGET Tracing
DEPENDS Tracing Qt::QuickWidgets
PLUGIN_DEPENDS Core Debugger ProjectExplorer QtSupport
SOURCES
${TEST_SOURCES}
)
if (NOT TARGET PerfProfiler)
return()
endif()
qt_add_resources(PerfProfiler perfprofiler
PREFIX "/perfprofiler"
tracepoints.sh
)
qt_add_qml_module(PerfProfiler
URI "QtCreator.PerfProfiler"
VERSION "1.0"
NO_PLUGIN
RESOURCE_PREFIX "/qt/qml"
QML_FILES
PerfProfilerFlameGraphView.qml
SOURCES
${PERFPROFILER_CPP_SOURCES}
)
|