标签: qt qml qtquick2 qt-quick
我想分析我的QML并测量一个给定QML文件的所有导入所花费的时间。
我知道QtQuick中有一个debug timer。但是我看不到如何描述导入零件,甚至加载零件。 有办法测量吗?
答案 0 :(得分:1)
您可以为此使用QML Profiler。特别是,您应该查看“编译和创建”事件类别:
https://doc.qt.io/qtcreator/creator-qml-performance-monitor.html#understanding-the-data