【问题标题】:How to profile with Code:Blocks如何使用 Code:Blocks 进行分析
【发布时间】:2015-10-02 12:23:38
【问题描述】:

我正在为 Windows 制作一个 wxWidget 应用程序。我正在使用代码:Windows 7 中的块 13.12 和 MinGW 4.8。

我在settings->compiler 中启用了-pg 选项,编译后尝试打开plugins->code profiler 结果是这样的:

gprof: 文件`C:\Users\josele\Documents\C_C++\DLL\SQLManager\bin\Release\SQLManager.exe' 没有符号

基本上我不知道代码分析是如何在代码块中工作的,而且我对分析的一般知识也大大减少了。

我正在寻找解决此问题或以下内容的教程:如何在代码块中进行分析?

如果您需要更多信息,请告诉我。提前谢谢你。

PD。我还运行了.exe,然后调用plugins->code profiler,并积极退出程序

【问题讨论】:

    标签: c++ profiling codeblocks wxwidgets


    【解决方案1】:

    我只是用这篇文章解决了这个问题:

    http://forums.codeblocks.org/index.php?topic=12237.0 http://forums.codeblocks.org/index.php?topic=14798.0

    我去了Project->build options,在那里我关闭了优化并启用了pofiler。

    【讨论】:

      【解决方案2】:

      为我解决的问题是关闭“-s”编译器标志,它似乎在 CB 版本标志中默认打开。

      【讨论】:

        猜你喜欢
        • 2013-06-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2019-01-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多