如何使用 Code:Blocks 进行分析
How to profile with Code:Blocks
我正在为 windows 制作一个 wxWidget 应用程序。我在 windows 7.
中使用 code:blocks 13.12 和 MinGW 4.8
我在 settings->compiler
中启用了 -pg 选项,编译后尝试打开 plugins->code profiler
结果是这样的:
gprof:
file`C:\Users\josele\Documents\C_C++\DLL\SQLManager\bin\Release\SQLManager.exe'
has no symbols
基本上我不知道 code:block 中的分析是如何工作的,而且我对分析的一般知识也大大减少了。
我正在寻找解决此问题的方法或以下教程:code:blocks 中的分析工作原理?
如果您需要更多信息,请只告诉我。提前谢谢你。
PD。我还 运行 .exe
在调用 plugins->code profiler
之前退出程序
我刚刚用这篇文章解决了这个问题:
http://forums.codeblocks.org/index.php?topic=12237.0
http://forums.codeblocks.org/index.php?topic=14798.0
我去了 Project->build options
并在那里关闭了优化并启用了 pofiler。
为我解决的是关闭“-s”编译器标志,它似乎在 CB 发布标志中默认打开。
我正在为 windows 制作一个 wxWidget 应用程序。我在 windows 7.
中使用 code:blocks 13.12 和 MinGW 4.8我在 settings->compiler
中启用了 -pg 选项,编译后尝试打开 plugins->code profiler
结果是这样的:
gprof: file`C:\Users\josele\Documents\C_C++\DLL\SQLManager\bin\Release\SQLManager.exe' has no symbols
基本上我不知道 code:block 中的分析是如何工作的,而且我对分析的一般知识也大大减少了。
我正在寻找解决此问题的方法或以下教程:code:blocks 中的分析工作原理?
如果您需要更多信息,请只告诉我。提前谢谢你。
PD。我还 运行 .exe
在调用 plugins->code profiler
之前退出程序
我刚刚用这篇文章解决了这个问题:
http://forums.codeblocks.org/index.php?topic=12237.0 http://forums.codeblocks.org/index.php?topic=14798.0
我去了 Project->build options
并在那里关闭了优化并启用了 pofiler。
为我解决的是关闭“-s”编译器标志,它似乎在 CB 发布标志中默认打开。