Files
qt-creator/tests/auto/tracing/flamegraphview/TestFlameGraphView.qml
Lucie Gérard a7956df3ca Use SPDX license identifiers
Replace the current license disclaimer in files by
a SPDX-License-Identifier.

Task-number: QTBUG-67283
Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2022-08-26 12:27:18 +00:00

41 lines
1.4 KiB
QML

// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
import QtCreator.TstTracingFlameGraphView
import QtCreator.Tracing
FlameGraphView {
id: root
model: flameGraphModel
typeIdRole: TestFlameGraphModel.TypeIdRole
sourceFileRole: TestFlameGraphModel.SourceFileRole
sourceLineRole: TestFlameGraphModel.SourceLineRole
sourceColumnRole: TestFlameGraphModel.SourceColumnRole
detailsTitleRole: TestFlameGraphModel.DetailsTitleRole
summaryRole: TestFlameGraphModel.SummaryRole
modes: [
TestFlameGraphModel.SizeRole,
TestFlameGraphModel.SourceLineRole,
TestFlameGraphModel.SourceColumnRole,
]
trRoleNames: [
TestFlameGraphModel.SizeRole, qsTr("Size"),
TestFlameGraphModel.SourceFileRole, qsTr("Source File"),
TestFlameGraphModel.SourceLineRole, qsTr("Source Line"),
TestFlameGraphModel.SourceColumnRole, qsTr("Source Column"),
].reduce(toMap, {})
details: function(flameGraph) {
var model = [];
root.addDetail(TestFlameGraphModel.SizeRole, detailFormats.noop,
model, flameGraph);
root.addDetail(TestFlameGraphModel.SourceFileRole, detailFormats.addLine,
model, flameGraph);
return model;
}
}