c++ - 如何使用代码 :Blocks 进行分析

标签 c++ profiling codeblocks wxwidgets

我正在为 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 中是如何工作的,而且我对分析的一般知识也大大减少了。

我正在寻找解决这个问题或教程:分析如何在代码块中工作?。

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

PD。在调用 plugins->code profiler 之前,我还运行了 .exe 并退出了程序

最佳答案

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

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

我转到 Project->build options 并在那里关闭优化并启用 pofiler。

关于c++ - 如何使用代码 :Blocks 进行分析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31396904/

相关文章:

c++ - g++ 在虚拟析构函数中给出删除数组的警告消息,这是什么意思?

c++ - 是否有适用于 Mac OS X 的好(最好是免费的)面向对象建模应用程序?

.Net Profiling API 方法

c++ - wxWidgets、Code::Blocks 和 wxStyledTextCtrl = 对 _imp__wxSTCNameStr 的 undefined reference

c++ - 捕获 boost 异常

c++ - 子类和 get_shared_from_this()

php - XHProf - 查看所有个人资料

c - 配置文件时间与 clock() 时间无关

C++: error LNK2019: 未解析的外部符号 __snprintf 在函数中引用

c - 如何从 Code::Blocks 的输出窗口中删除与执行相关的文本