对 CMake 代码进行性能分析

借助 CMake 3.18 及更高版本中的性能分析支持,您可以查明 CMake 在配置项目时耗费时间的具体位置。

要在Chrome Trace Format Visualizer 中查看性能分析信息,请选择“Analyze ” > “CMake Profiler ”。

Chrome Trace Format Visualizer 中的 CMake 性能分析信息

另请参阅 CMakeChrome 跟踪格式可视化工具

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.