Qt性能和工具更新第1部分

KDAB CEO推荐:Qt开发、调试、诊断的十大工具_qt 程序的性能分析工具(1) GammaRay深入理解大多数Qt核心组件,如QtQuick scene graphs、模型/视图结构、QTextDocuments、信号/槽的行为、焦点处理、GPU纹理、QWidget、状态机等,它允许您在运行时以自然的方式观察和编辑这些值。如果您一直身处Qt开发的前沿,您可能知道许多类似的工具,但无论您的专业水平如何,我们相信您都能在这里发现一些新东西。您需要一种方法来查看您对OpenGL、Direct3D或DirectDraw的调用,以图形方式查看这些调用的内容,并分析它们的性能。 阅读详情

Qt Performance and Tools Update Part 1

Qt性能和工具更新第1部分

July 05, 2024 by Veli-Pekka Heinonen | Comments

​2024年7月5日:Veli Pekka Heinonen |评论

Performance optimisation matters when you are trying to get your application working in a resource-constrained environment. This is typically the case in embedded but also in some desktop scenarious you may run short on resources so it’s not a matter without significance on desktop either.

当试图让应用程序在资源受限的环境中工作时,性能优化非常重要。这通常是嵌入式的情况,但在某些桌面场景中也会出现这种情况,可能会缺少资源,因此这在桌面上也不是没有意义的事情。

What we mean by performance here is the ability to get the application running to fulfill its purpose, in practice typically meaning sufficient fps in the UI and meeting other nonfunctional requirements, such as startup time, memory consumption and CPU/GPU load.

我们这里所说的性能是指让应用程序运行以实现其目的的能力,在实践中通常意味着UI中有足够的fps,并满足其他非功能要求,如启动时间、内存消耗和CPU/GPU负载。

There have been a number of discussions on Qt performance aspects and as we have been working on a number of related items we thought now could be a good time to provide a summary of all the activities and tools we have. You can optimise the performance of your application by utilising them and also use them in testing. We have been working on improving existing performance tools as well as adding new ones and providing guidelines, so let’s look at the latest additions. This post is starting a stream of blog posts to help you with performance optimisation and provide a view to our activities in this area.

已经就Qt性能方面进行了多次讨论,由于我们一直在研究一些相关项目,我们认为现在可能是总结我们所有活动和工具的好时机。可以通过使用它们来优化应用程序的性能,也可以在测试中使用它们。我们一直在努力改进现有的性能工具,添加新的性能工具并提供指导方针,所以让我们看看最新添加的性能工具。这篇文章正在启动一系列博客文章,以帮助优化性能,并提供我们在这一领域的活动视图。

Qt Lite

The Qt framework consists of over fifty modules that you can easily select to be deployed with the application as needed. We have been working on enhancing Qt6 configurability so that you could more easily remove functionality you do not need. 

Qt框架由50多个模块组成,您可以根据需要轻松选择这些模块与应用程序一起部署。我们一直致力于增强Qt6的可配置性,以便可以更轻松地删除不需要的功能。

Qt Configure Options, also often referred to as features, is a concept that allows developers to optimize their applications for better performance and efficiency. With Qt Configure Options, applications can be delivered in smaller packages, fitted into smaller RAM footprints, and launched faster. Together with LTCG Qt Configure Options will also improve runtime performance.

​Qt配置选项,也称为功能,是一个允许开发人员优化应用程序以获得更好性能和效率的概念。使用Qt配置选项,应用程序可以以更小的包交付,安装在更小的RAM占用中,并更快地启动。与LTCG Qt配置选项一起使用也将提高运行时性能。

Please stay tuned for separate blog posts on this topic in the near future.

在不久的将来,请继续关注有关此主题的单独博客文章。

Application Trace Events

应用程序跟踪事件

We have blogged about application trace events previously in conjunction of the QML profiler and our events (Q_TRACE):

我们之前在博客中结合QML探查器和我们的事件(Q_trace)介绍了应用程序跟踪事件:

https://www.qt.io/blog/qtquick3d-qml-profiler-events

We are continuing the work on this to add more events and a separate blog post is coming out in a few weeks  as well to cover latest aspects, in particular using your own events.

我们正在继续这方面的工作,以增加更多的活动,几周后还会发布一篇单独的博客文章,介绍最新的方面,特别是使用自己的活动。

Application trace events allow you to see low level C++ code tracing info without building Kernel or debug frames in an OS that does not support tracing. It allows you to get full stack tracing to trace from the top level QML or JavaScript down to the C++ and all the way to the kernel space. This enables you to for instance measure the performance of an application and to check whether it is CPU or I/O bound or influenced by other applications running on the same system.

应用程序跟踪事件允许查看低级别C++代码跟踪信息,而无需在不支持跟踪的操作系统中构建内核或调试框架。它允许进行全栈跟踪,从顶级QML或JavaScript一直跟踪到C++,一直跟踪到内核空间。例如,这够测量应用程序的性能,并检查它是否受CPU或I/O限制,或者是否受同一系统上运行的其他应用程序的影响。

Common Trace Format Viewer (CTF)  -support was also added in Qt 6.5 for trace events. It can be used also in cases that are not supported by LTTng, for instance on Windows and allows you to get a full view of your system. It also works on some RTOSs. You can open traces using trace-compass or convert them to text using babeltrace.

通用跟踪格式查看器(CTF)-在Qt 6.5中还添加了对跟踪事件的支持。它也可以用于LTTng不支持的情况,例如在Windows上,并允许获得系统的完整视图。它也适用于一些RTOS。可以使用跟踪指南针打开跟踪,也可以使用babeltrace将它们转换为文本。

LTTng-based tracing can be enabled on Linux as long as Qt has been built with support enabled.

只要Qt是在启用支持的情况下构建的,就可以在Linux上启用基于LTTng的跟踪。

Qt Creator Performance Tools

Qt Creator性能工具

There are many performance related tools available also in Qt Creator, such as QML Profiler  that is a debugging tool inside Qt Creator for finding root causes for typical performance issues. Full list of Qt Creator tools is available here: Analyzing Code | Qt Creator Manual

​Qt Creator中还提供了许多与性能相关的工具,例如QML Profiler,它是Qt Creaator中的一个调试工具,用于查找典型性能问题的根本原因。Qt Creator工具的完整列表可在此处获得:分析代码| Qt Creator手册

QML Profiler provides QML or JavaScript stack traces by recording every single function call with exact timestamps. Viewing the collected data can be done separately in Qt Creator.

QML Profiler通过记录每个带有精确时间戳的函数调用,提供QML或JavaScript堆栈跟踪。可以在Qt Creator中单独查看收集的数据。

The main difference of QML profiling and application trace events is that application trace events also support tracing on the C++ level.

QML评测和应用程序跟踪事件的主要区别在于,应用程序跟踪活动还支持C++级别的跟踪。

Please see the link below for more information on QML profiling:

有关QML分析的更多信息,请参阅下面的链接:

Profiling QML Applications | Qt Creator Manual

There is also a profiler available for CMake from Qt Creator 12 onwards. This allows you to see where CMake is spending time configuring your project: https://doc.qt.io/qtcreator/creator-how-to-profile-cmake-code.html

从Qt Creator 12起,还有一个可用于CMake的探查器。这允许您查看CMake在配置项目时所花费的时间:https://doc.qt.io/qtcreator/creator-how-to-profile-cmake-code.html

Additionally there is a tool for analysing CPU usage that we have found handy: 

此外,还有一个用于分析CPU使用情况的工具,我们发现它很方便:

Analyzing CPU Usage | Qt Creator Manual

Please also see Qt Creator documentation link below for more information on trace visualisation of full stack tracing using Chrome Trace Events which is especially useful when viewing large trace files that are difficult to visualize using the built-in trace-viewer:

还请参阅下面的Qt Creator文档链接,了解有关使用Chrome trace Events进行全栈跟踪可视化的更多信息,这在使用内置跟踪查看器查看难以可视化的大型跟踪文件时尤其有用:

Visualizing Chrome Trace Events | Qt Creator Manual

Qt Quick Compilers

Qt Quick编译器

We have been blogging about Qt Quick compilers for QML and related performance enhancements previously:

我们之前一直在写关于QML的Qt Quick编译器和相关性能增强的博客:

https://www.qt.io/blog/qt-6.6-and-6.7-make-qml-faster-than-ever-a-new-benchmark-and-analysis

https://www.qt.io/blog/compiling-qml-to-c-a-4x-speedup

Qt Quick compiler offers significant performance improvement compared with interpreting it by compiling QML to C++ – with significant improvement (see links above) using a non-UI benchmarking app utilising QObjects which is a typical use case.

与通过将QML编译到C++来解释它相比,Qt Quick编译器提供了显著的性能改进——使用非UI基准应用程序使用QObjects(这是一个典型的用例)具有显著的改进(见上面的链接)。

The performance numbers for dealing with QObjects and calling typed functions on them have improved massively in Qt 6.6 and Qt 6.7 while also improving startup time.

在Qt6.6和Qt6.7中,处理QObjects和在QObjects上调用类型化函数的性能大大提高,同时也缩短了启动时间。

Next step here is restructuring the type information in the compiler so that our type inference can be extended again.

这里的下一步是重新构造编译器中的类型信息,以便我们的类型推理可以再次扩展。

The existing documentation covers more details for the QML compilers:

现有文档涵盖了QML编译器的更多详细信息:

https://doc.qt.io/qt-6/qtqml-qtquick-compiler-tech.html

ROM Reduction in Qt for MCU

单片机Qt中ROM的减少

Qt for MCU is a complete graphics framework and toolkit that supports QML while fitting into a few hundred kBytes of memory. It is in particular intended to microcontrollers where processing capacity and memory are limited. You can however run it in MPUs as well. Please see the product page for more details on Qt for MCU:

Qt for MCU是一个完整的图形框架和工具包,支持QML,同时适合几百kBytes的内存。它特别适用于处理能力和内存有限的微控制器。然而,也可以在MPU中运行它。有关MCU Qt的更多详细信息,请参阅产品页面:

https://www.qt.io/product/develop-software-microcontrollers-mcu

We have ongoing activity to reduce ROM footprint even further. This is a constant effort and in Qt for MCUs 2.8 LTS we were able to reduce the amount of code C++ generated from QML in 4-10% compared with the previous 2.5 LTS release.

我们正在进行进一步减少ROM占用的活动。这是一项持续的努力,在针对MCU 2.8 LTS的Qt中,与之前的2.5 LTS版本相比,我们能够将QML生成的C++代码量减少4-10%。

Embedded Performance Evaluation Application

嵌入式性能评估应用程序

Embedded performance evaluation application is a new application for embedded 2D use cases offering a minimalistic UI that can be expanded to see how performance evolves on your hardware when you add more and more UI elements. It provides a log output for fps, CPU load as well as memory consumption that you can view, and also supports command line usage so it could be used for continuous testing efforts. It is currently in beta phase and can be provided to early users separately later in the fall.

嵌入式性能评估应用程序是一款适用于嵌入式2D用例的新应用程序,它提供了一个极简主义的UI,当添加越来越多的UI元素时,可以扩展该UI以查看硬件的性能如何发展。它提供了可以查看的fps、CPU负载以及内存消耗的日志输出,还支持命令行使用,因此可以用于连续的测试工作。它目前处于测试阶段,可以在秋季晚些时候单独提供给早期用户。

Qt5 vs Qt6

Measuring performance can be a complicated thing and it’s easy to end up measuring things that are not directly comparable. For instance, in Qt6 we introduced the RHI APIs that change the software architecture in order to have better support for different backends like Vulkan in addition to OpenGL. RHI slightly changes the way your app uses Qt, but it significantly changes the way Qt uses the hardware and the OS. This makes direct comparisons between Qt5 and Qt6 much less straightforward.

衡量性能可能是一件复杂的事情,最终很容易衡量出无法直接比较的东西。例如,在Qt6中,我们引入了RHI API,这些API改变了软件体系结构,以便更好地支持不同的后端,如Vulkan以及OpenGL。RHI略微改变了你的应用程序使用Qt的方式,但它显著改变了Qt使用硬件和操作系统的方式。这使得Qt5和Qt6之间的直接比较变得不那么简单。

As another example we have for instance enhanced multi-threading support for certain operations in the software rasterizer (QPainter), however utilising multiple cores leads to higher CPU consumption initially (peak) but provides faster progress in the end in comparison to using a single-core model.

例如,作为另一个例子,我们对软件光栅化器(QPainter)中的某些操作增强了多线程支持,然而,与使用单核模型相比,使用多核最初会导致更高的CPU消耗(峰值),但最终会提供更快的进度。

Similarly configuration may also play a role. For instance Yocto configuration is different between Qt5 and Qt6, so just upgrading Yocto in Boot to Qt 5 to Qt6 and not configuring e.g. ICU library used for internationalising will cause significant memory increase that can be solved by reconfiguring libraries.

类似的配置也可能发挥作用。例如,Yocto配置在Qt5和Qt6之间是不同的,因此仅将引导中的Yocto升级到Qt5到Qt6,而不配置例如用于国际化的ICU库,将导致内存显著增加,这可以通过重新配置库来解决。

Additionally different versions of OS, 3rd party libraries and drivers make direct comparisons more difficult and these should be taken into account in the test setup.

此外,不同版本的操作系统、第三方库和驱动程序使直接比较更加困难,在测试设置中应考虑这些因素。

We have additional measurement work ongoing, comparing Qt5 to Qt6 on desktop among other things, and we can provide details of these measurements in the coming weeks, but the key thing is how Qt is being used as it can have a major impact to the results seen.

我们正在进行额外的测量工作,在桌面上比较Qt5和Qt6等,我们可以在未来几周内提供这些测量的细节,但关键是Qt的使用方式,因为它会对所看到的结果产生重大影响。

In general Qt6 has more functionality and code so it may well consume a little more memory than Qt5 in many scenarious but with some planning and guidelines there should be no major difference in performance in general. QML compilers and Qt Lite feature configuration are example additional ways to enhance performance for CPU/GPU consumption, memory utilisation and startup time.

一般来说,Qt6具有更多的功能和代码,因此在许多情况下,它可能会比Qt5消耗更多的内存,但有了一些规划和指导原则,总体而言,性能应该不会有太大差异。QML编译器和Qt-Lite功能配置是提高CPU/GPU消耗、内存利用率和启动时间性能的额外方法。

Qt Regression Testing

Qt回归测试

We are using a number of tools for regression testing but one key one from performance perspective is the QmlBench: https://code.qt.io/cgit/qt-labs/qmlbench.git/ 

​我们正在使用许多工具进行回归测试,但从性能角度来看,其中一个关键工具是QmlBench:https://code.qt.io/cgit/qt-labs/qmlbench.git/ 

QmlBench is a tool for benchmarking Qt, QML and QtQuick as a whole stack rather than in isolation. The benchmarks it provides exercise a very large part of Quick, QML, Gui, Core, and as a result can be considered a decent metric for overall Qt performance.

QmlBench是将Qt、QML和QtQuick作为一个整体进行基准测试的工具,而不是孤立地进行基准测试。它提供的基准测试在很大程度上锻炼了Quick、QML、Gui、Core,因此可以被视为衡量整体Qt性能的一个不错的指标。

We have been using QmlBench to test different Qt versions on both various desktop and embedded platforms to detect regression issues. Now we are extending the embedded hardware coverage to new boards as well as enhancing the test procedure itself to better detect regressions.

我们一直在使用QmlBench在各种桌面和嵌入式平台上测试不同的Qt版本,以检测回归问题。现在,我们正在将嵌入式硬件覆盖范围扩展到新的电路板,并增强测试程序本身,以更好地检测回归。

Does it really reside on github? We have git.qt.io, we have package delivery, we have github. Reads like everything is spread out to all kinds of places with no structure [MK1]

它真的存在于github上吗?我们有git.qt.io,我们有包裹递送,我们有github。读起来就像所有东西都分散到各种没有结构的地方[MK1]

DebugView QML Type for Quick 3D

用于Quick 3D的DebugView QML类型

Sometimes you may have a need to debug your existing application in various scenarios. As one option for Qt Quick 3D data for easily seeing performance releated data DebugView QML type creates a dialog in the top left hand corner of your application providing a view on 3D fps, sync and render times as well as detailed statistics: draw calls, render passes, textures and meshes used by the scene‘s assets

有时,可能需要在各种场景中调试现有的应用程序。作为Qt Quick 3D数据的一个选项,可以轻松查看性能相关数据DebugView QML类型在应用程序的左上角创建一个对话框,提供3D fps、同步和渲染时间以及详细统计信息:绘制调用、渲染过程、场景资源使用的纹理和网格

This can be enabled by adding a QML snippet to your code.

这可以通过向代码中添加QML片段来实现。

Qt Performance Guidelines

Qt性能指南

The Qt performance guidelines have been a bit scattered in Qt documentation but we are assembling them to one location which is easier to find. Guidelines have been instrumental in getting the best out of individual hardware boards. Qt is a comprehensive framework with many bells and whistles for a vast number of purposes allowing you to do many different things, but you may inadvertently end up selecting unoptimised software constructs. The list of guideline documents currently includes:

Qt性能指南在Qt文档中有点分散,但我们正在将它们组装到一个更容易找到的位置。指导方针有助于最大限度地利用单个硬件板。Qt是一个全面的框架,具有许多功能,可以用于多种用途,允许做许多不同的事情,但您可能会无意中选择未优化的软件结构。准则文件清单目前包括:

We are also coming up with example reference applications to give concrete code examples about performance optimisation with Qt. Additionally there is an existing application for Quick 3D performance benchmarking for both Qt5 and Qt6:

我们还提出了示例参考应用程序,以提供有关Qt性能优化的具体代码示例。此外,还有一个用于Qt5和Qt6的Quick 3D性能基准测试的现有应用程序:

https://www.qt.io/blog/introducing-qtquick3d-benchmarking-application

Summary

总结

The high level key points of this blog post are:

这篇博客文章的高级要点是:

  • Qt already provides a wide variety of tools allowing you to get to good performance especially on embedded and the list of tools and features is expanding.
  • Qt已经提供了各种各样的工具,使您能够获得良好的性能,尤其是在嵌入式方面,而且工具和功能的列表正在扩展。
  • We are expanding our regression testing activities to even better detect perfomance-related anomalies.
  • 我们正在扩大我们的回归测试活动,以更好地检测与性能相关的异常。
  • We have a number of performance guidelines and recommendations to help you get over performance hurdles in your Qt application.
  • 我们有许多性能指南和建议,可以帮助克服Qt应用程序中的性能障碍。

Qt 性能优化 现象和解决方案 在最近的项目中,发现执行 Qt 程序时,有些情况下的 CPU 占用率奇高,最高高达 100%。项目跑在嵌入式板子上,最开始使用 EGLFS 插件,但是由于板子没有单独的鼠标层,导致鼠标移动起来卡顿,很不流畅,所以换成了 LinuxFB 插件。但是如果 CPU 占有率高了的话,也会导致鼠标卡顿,因为鼠标是由 Qt 应用程序层负责绘制的,如果应用程序 CPU 占有率高了的话,也会导致鼠标绘制缓慢,导致鼠标卡顿。 阅读详情

相关推荐

Qt 性能优化策略和技巧

Qt 性能优化需要从多个方面入手,包括 UI 渲染、内存管理、多线程、算法优化等。通过合理使用工具和优化策略,可以显著提升 Qt 应用程序的性能和用户体验。在实际开发中,建议结合性能分析工具,定位瓶颈并针对性优化。

dt_dev的博客 1107

Qt项目使用VS的性能分析工具

Qt项目使用VS的性能分析工具

weixin_45001971的博客 3101

c++图形界面开发中,Qt和MFC谁更胜一筹?

在C++语言主导下,有MFC和QT俩大平台,很很多读者对于这俩大平台不是很了解,不知道这俩大平台到底需要学习哪一种,有何优势?就这个问题我将我收集的各个观点总结为以下几点: 一、QT 跨平台C++图形用户界面应用程序开发框架。它既可以开发GUI程序,也可用于开发非GUI程序,比如控制台工具和服务器。Qt是面向对象的框架,使用特殊的代码生成扩展(称为元对象编译器(Meta Object Compiler, moc))以及一些宏,Qt很容易扩展,并且允许真正地组件编程。其优势如下: 1. 跨平台,可在Wi

qq_42444778的博客 1万+

【QT学习】如何使用qt自带的性能分析工具qml profile分析qml的性能

背景:自己的代码是c++跟qml混编的,占了CPU很大,因此想通过性能工具测试自己哪一个部分耗用的比较多,使用qt自带的性能分析工具来分析qml。自己的qt版本是qt 10(qml profile只有在qt的版本超过一定的版本之后才可以免费) 1.打开自己的工程pro 2.选择debug模式 3.在debug setting中设置中,将c++以及qml选中 4.点击analyze中...

ipfpm的博客 9286

Qt Creator使用Perforce

Qt Creator使用Perforce使用Perforce配置Perforce编辑档案 使用Perforce Perforce是由Perforce Software开发的快速软件配置管理系统。 从Qt Creator 4.9开始,默认情况下禁用Perforce插件。要启用它,请选择“帮助” >“关于插件” >“版本控制” >“ Perforce”。然后选择立即重新启动以重新启动Qt Creator并加载插件。 配置Perforce 在Perforce选项中,您可以指定工作区详细信息:P4

希望我的博客,能帮上你解决学习中工作中所遇到的问题 886

C++(Qt)软件调试---Linux 性能分析器perf(29)

- `perf` 是一个功能强大的 Linux 性能分析工具,它能够帮助开发者深入了解程序的运行情况,识别性能瓶颈,从而进行优化。通过掌握 `perf` 的基本功能、主要命令、高级特性以及使用场景,开发者可以更加高效地进行性能分析和调优工作。 > - perf是命令行工具,使用qtcreator、hotspot等工具可以在图形界面中调用perf进行分析,使用更加简单方便;

mahuifa的博客 1411

【QT教程】QT6性能优化入门 QT性能优化

QT6代码性能优化概述QT6代码性能优化概述在软件开发过程中,性能优化是一个非常重要的环节。QT6作为一款功能强大的跨平台C++图形用户界面库,提供了许多用于性能优化的工具和策略。本文将介绍QT6代码性能优化的基本概念和方法。性能优化的目标性能优化的目标是在保证软件功能正确的前提下,提高软件的运行效率,降低资源消耗,提升用户体验。在QT6中,性能优化主要关注以下几个方面,提高程序启动速度提高界面渲染速度提高数据处理速度降低内存占用降低CPU、GPU负载性能优化的原则。

QT性能优化QT原理源码QT界面美化 2101

Qt Creator分析CPU使用率

Qt Creator分析CPU使用率分析CPU使用率使用性能分析器分析设备上的内存使用情况指定性能分析器设置选择事件类型选择采样模式和周期选择通话图模式设置堆栈快照大小为Perf添加命令行选项解析JIT编译的JavaScript函数的名称分析收集的数据选择事件范围了解数据查看统计将统计数据可视化为火焰图意见之间的互动加载性能数据文件加载和保存跟踪文件故障排除 分析CPU使用率 Qt Creator与Linux Perf工具集成在一起,可用于分析嵌入式设备(在一定程度上)Linux桌面平台上的应用程序的CPU

希望我的博客,能帮上你解决学习中工作中所遇到的问题 2622

【QT教程】QT6 QML性能优化入门与进阶 QT QML性能优化

QT6_QML性能优化简介QT6_QML性能优化简介Qt 是一款广泛应用于桌面、移动设备和嵌入式系统的跨平台 C++ 应用程序框架。Qt 6 是该框架的最新版本,它带来了许多新特性和改进,包括对 QML 的性能优化。QML 是 Qt Quick 模块的一部分,它提供了一种声明性语言,用于构建用户界面和应用程序。在 Qt 6 中,QML 性能优化得到了显著改进,使得开发人员能够创建更快、更高效的应用程序。本文将介绍 Qt 6 中 QML 性能优化的基础知识,帮助您了解如何提高应用程序的性能。

QT性能优化QT原理源码QT界面美化 4243

在Qt和OSG中动态改变部分3D模型数据

考虑使用顶点缓冲区对象(VBO)提高渲染效率。:在Qt界面或逻辑中设置修改这些部分的机制。:使用OSG的读取器加载3D模型文件。只修改需要变化的部分,避免全场景更新。:确保修改后的模型能够实时更新显示。:识别并获取模型中需要修改的部分。对频繁修改的部分使用。

深之JohnChen的专栏 1319

诊断工具:Qt Creator插件(内存和CPU使用情况可视化工具)

诊断工具:Qt Creator插件(内存和CPU使用情况可视化工具)

【QT教程】QT6性能监控与分析 QT性能优化

QT6性能监控的意义与目的QT6性能监控的意义与目的在软件开发过程中,性能监控与分析是一个至关重要的环节。特别是在QT6这样的高级图形用户界面应用程序开发中,性能的优劣直接关系到用户的体验和产品的市场竞争力。本书旨在通过详细的案例和实用的技术指导,帮助QT6开发者深入理解性能监控的重要性,并掌握相关的分析工具和技术。性能监控的意义1. 提升用户体验性能监控能够确保应用程序运行流畅,响应迅速。

QT性能优化QT原理源码QT界面美化 2504

建议收藏:华为海思IC设计笔试题,含解析(附下载)

接触过的部门有麒麟芯片、CPU/GPU,总体面试感觉非常好,规范且认真,第一轮手撕代码状态机+复盘机考题+瞄准几个知识点深挖,时间1hour+;一二轮面试是连着的,所以很累。但是岗位就那么多,在面试的时候,很多同学因为准备不充分,与岗位失之交臂,无缘进入该公司。时序电路有记忆功能,不会产生锁存器,锁存器一般在组合逻辑中case写不全,else写不全,或者敏感列表写不全。

nuoweishizi的博客 3292

探索QT 5.9.1:跨平台应用开发的利器

探索QT 5.9.1:跨平台应用开发的利器 【下载地址】QT5.9.1下载资源介绍 QT 5.9.1 下载资源介绍本资源提供QT 5.9.1版本的下载,适用于Windows操作系统 项目地址: https://gitcode.co...

gitblog_06534的博客 646

R语言实战:GEO单细胞数据下载与自动化整理全流程(附代码)

本文详细介绍了使用R语言从GEO数据库下载scRNA-seq数据并实现自动化整理的完整流程。通过GEOquery和Seurat等工具包,读者可以高效获取单细胞RNA测序数据,完成从原始数据下载到预处理的全过程,最终生成可直接用于分析的Seurat对象。文章包含完整代码示例,特别适合生物信息学研究者处理单细胞数据。

weixin_29061821的博客 432

PVE 8.0 保姆级换源教程:从Debian到LXC仓库,一次搞定国内镜像(附弹窗去除)

本文提供PVE 8.0保姆级换源教程,涵盖从Debian基础源到LXC仓库的国内镜像配置,并附赠去除订阅弹窗的实用技巧。通过详细步骤和命令示例,帮助用户快速优化ProxmoxVE环境,提升下载速度并消除干扰提示,适用于虚拟化平台的高效管理。

weixin_33282146的博客 418

QtAutoUpdater终极指南:如何为你的Qt应用添加自动更新功能

你是否正在寻找一个简单高效的方法来为你的Qt应用程序添加自动更新功能?🤔 那么QtAutoUpdater正是你需要的解决方案!这个强大的Qt库可以自动检查并安装更新,支持多种后端平台,让你的应用始终保持最新状态。无论你是开发桌面应用、移动应用还是跨平台应用,QtAutoUpdater都能提供完整的自动更新解决方案。 ## 🚀 什么是QtAutoUpdater? QtAutoUpdater是

gitblog_00035的博客 1130

STM32 LWIP服务器内存泄漏排查实录:从20个客户端连接测试到稳定运行的优化之路

本文详细记录了STM32 LWIP服务器在20个TCP客户端连接压力测试中出现的内存泄漏问题排查与优化过程。通过压力测试环境搭建、内存泄漏检测工具使用、常见泄漏点分析与修复,最终实现了稳定支持多客户端连接的优化方案,包括连接数动态限制、心跳检测机制和内存泄漏自检机制等关键优化措施。

weixin_42530458的博客 392

Qt5和Qt6的区别

之前有做过将项目从QT4迁移到QT5的操作,所以写了一篇QT4和Qt5的区别。在最近这一年接触过Qt6后,所以想要介绍一下Qt6和Qt5的区别,通过自己的试用感受和结合网上各路大佬的点拨,有了一个大概的了解。

weixin_43246170的博客 1万+

LCD工程师必看:Pixelclock、Mipi Clk计算全解析(附实用公式)

本文为LCD工程师详细解析了像素时钟(Pixelclock)与MIPI时钟(Mipi Clk)的核心计算方法。文章从时序参数构成入手,通过实战公式推导,系统阐述了从屏幕分辨率、刷新率到最终MIPI速率的高效计算链路,并提供了实用的调试思路与排查清单,帮助工程师快速解决画面撕裂、闪烁等常见问题。

weixin_29266679的博客 404

GRSL 2026 即插即用 | Transformer篇 | DCSA:动态稀疏门控自注意力,兼顾长距离依赖与局部细节表达!

SDANet整体架构和模块Dynamic Channel Sparse Attention (DCSA):DCSA为Transformer块中的自注意力层。DCSA架构:样本级动态稀疏注意力:首次实现每个样本独立预测注意力稀疏度:通过轻量门控网络根据输入特征的复杂度自适应调整保留的通道数,简单样本使用更高稀疏度(如保留 20% 通道),复杂样本使用更低稀疏度(如保留 80% 通道),在保证精度的前提下平均计算量降低 50% 以上。

主要更新底层视觉(去噪、超分等)相关的科研内容,形式为【论文精读】+【论文复现】 115

Qt 6 相比 Qt 5 的主要提升与更新

Qt 6的一大重要目标是利用现代硬件的性能,充分发挥C++17标准的优势。为此,Qt 6 对核心库进行了重构,使其在内存管理和执行效率上有显著的提升。模块化设计:Qt 6 采用了更加灵活的模块化设计,让开发者可以按需引入必要的功能模块,而不必加载所有的库。这种优化不仅降低了项目的体积,还提高了构建效率。C++17 支持:Qt 6 在语言层面引入了对 C++17 标准的支持,使得代码更加简洁、现代化,利用 C++17 的新特性对 Qt 的核心进行优化,提升了框架的执行效率和内存管理。Qt 6相比Qt 5。

weixin_73414031的博客 5709

ONNX Runtime C# YOLO全链路压测:从300ms到22ms的15个底层优化技巧

摘要:本文分享了工业质检场景下C#调用YOLOv8s ONNX模型的性能优化实战经验。原始单帧推理耗时300ms无法满足产线需求,通过全链路分析定位瓶颈(预处理85ms、推理180ms、后处理30ms)。重点优化措施包括:使用OpenCVSharp CUDA加速预处理(85ms→12ms),开启ONNX Runtime ALL级别图优化,选用TensorRT执行提供程序(180ms→22ms),以及优化内存管理和线程调度。最终实现单帧总耗时22ms±2ms,GPU利用率提升至85%,完整满足产线120块板/

2601_94871597的博客 405

PDF4QT 1.5.1版本发布:专注稳定性的PDF处理工具升级

PDF4QT是一个基于Qt框架开发的跨平台PDF处理工具集,提供了一系列强大的PDF文档处理功能。作为一款开源软件,它包含了PDF查看器、编辑器以及多种实用工具,能够满足用户对PDF文档的各种操作需求。该项目采用模块化设计,不仅提供了完整的应用程序,还可以作为开发库集成到其他项目中。 ## 版本亮点 最新发布的PDF4QT 1.5.1版本是一个以修复bug和提升稳定性为主的维护性更新。虽然功能...

gitblog_01301的博客 1242

S7-1200中通过MODBUS TCP客户端在一次请求中实现从服务器读写一个或多个保持性寄存器的具体方法

S7-1200中通过MODBUS TCP客户端在一次请求中实现从服务器读写一个或多个保持性寄存器的具体方法

Robot_PLC_HMI_Automation 4227

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

QT的版本和官方下载地址(不断更新)及安装过程

QT的版本 Qt 的版本更新比较快,且版本更新时会新增一些类或停止维护一些以前版本的类,例如 Qt 5 与 Qt 4 就有较大的区别,如果不是为了维护用旧版本编写的程序,一定要选用最新版本的 Qt 进行程序开发。 Qt 公司在 2017 年 5 月底发布了 Qt 5.9.0。Qt 5.9 是一个长期支持(LTS)版本,在未来至少 3 年内(2020年5月)提供更新支持,而上一个 LTS 版本是 ...

Bluenapa的博客 8660

vb 6.0并口开发操作实例

vb6并口开发,简体中文,试例内有inpout32.dll动态链接库

上一篇: OpenCL™规范 5.7. 采样器对象
下一篇: OpenCL™规范 5.7.1. 创建采样器对象
꧁白杨树下꧂
博客等级 码龄15年 1019粉丝 209原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值