Qt 的基准应用程序?
我想做一些 Qt 的分析和基准测试。分析和基准测试的目的是为了更好地理解 Qt,看看哪些函数花费了大部分时间,典型的瓶颈在哪里,是渲染还是某些事件处理等。
有人可以建议我使用什么应用程序吗?基准?是否有任何利用 Qt GUI 的示例基准测试应用程序? SDK中有类似的东西吗?
I would like to do some profiling and benchmarking of Qt. The purpose of the profiling and benchmarking is to get the better understanding of Qt, and see what functions take most of the time, where are typical bottlenecks, is it rendering or some event processing, etc.
Can anybody suggest me what application to use for the benchmark? Are there any sample benchmarking applications that exploit Qt GUI? Is there anything like that that comes with the SDK?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
SDK 附带了大量示例和演示程序。演示程序涵盖了 Qt 的所有主要方面。您可以使用它来非常简单地对它们进行基准测试。
由于代码的复杂性和非 Qt 内容的数量(对于 KDE),使用更大的应用程序(例如 KDE 或 QtCreator 本身)将会更加困难。
The SDK comes with a bunch of examples and demo programs. The demo programs cover all the major aspects of Qt. You could use that to benchmark each of them pretty simply.
Going with larger apps (like KDE, or QtCreator itself maybe) is going to be much harder because of the complexity of the code and amount of non-Qt stuff (for KDE).
valgrind http://valgrind.org/ 是一个功能强大的分析器
valgrind http://valgrind.org/ is a powerful profiler