In the previous section, Introducing QML performance analysis, you were introduced to QML Profiler and its basic functionality. In this section, we will explore what other features QML Profiler can offer us to make our debugging process faster and more effective. We will also learn how to examine the data displayed in QML Profiler and what the data indicates, so that we can determine the cause of slowdowns or crashes happening to our application.
To demonstrate this, let's perform the following steps:
- Let's create a new Qt Quick project and change the code of main.qml to the following:
import QtQuick 2.12
import QtQuick.Window 2.12
Window {
id: window
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Component.onCompleted: {
for (var i = 0; i < 200; i++)
{
var x = Math.floor...