测量Qt的应用程序性能 [英] Measure Qt Application Performance

查看:989
本文介绍了测量Qt的应用程序性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的Qt应用程序(C ++和QML混合,Qt的4.8.4),我交叉编译,然后在ARM目标部署(与-qws选项运行)。由于我使用不同的目标,我必须根据他们的表现这些目标的比较,我想测试每个这些目标的我的应用程序的性能。

I am working an a Qt application (C++ and QML hybrid, Qt 4.8.4) that I cross-compile and then deploy on an ARM target (runs with the -qws option). Since I am using different targets, and that I have to make a comparison of these targets based on their performances, I would like to test the performances of my application on each of these targets.

我在想我的测量应用的FPS,但我不知道该怎么做。

I was thinking about measuring the FPS of my application, but I don't know how to do so.

如果它做出这样的测试的正确方法,我该如何实现呢?如果有一个更好的和/或更简单的方法来做到这一点,我将它高兴讯:)

If it's the proper way to make such a test, how do I implement it? If there's a better and/or simpler way to do so, I would be glad hearing about it :)

任何帮助将大大AP preciated。

Any help would be greatly appreciated.

推荐答案

我觉得 QTestLib 的标杆功能可以帮助您评估您的应用程序的性能。使用它,您可以测试您的应用程序的不同模块和识别潜在的性能瓶颈。请参见文档和示例

I think the Benchmarking capability of QTestLib can help you measuring the performance of your application. Using it, you can test different modules of your application and identify potential performance bottlenecks. See documentation and example.

此解决方案还可以测量应用程序的FPS,如在的 QTEST命名空间

This solution can also measure FPS of your application, as described in the QTest Namespace.

作为奖励,你可以使用 QTEST 在你的设备,这可能是巨大的,潜在的检测在定期检测的顶部缺少操作系统特性运行单元测试..

As a bonus, you can use QTest to run your Unit Tests on your devices, which could be great to potentially detect missing OS features on top of regular testing...

这篇关于测量Qt的应用程序性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆