C/C++ AQtime 分析器问题
我需要使用 AQ 分析我的控制台程序。 它位于一个大文件中(出于优化目的)。
void function1();
void function2()
// etc more declarations
int main{
//alot of loops, and function uses
function1();
function1();
}
对“经过时间”默认配置文件进行分析只是让我知道 main 正在使用 100%,并且花了 40 秒来完成其工作。 没有说明在 main 内部调用的函数花费了多少时间,只说明了它们被调用了多少次,这什么也没有说明。
我在配置 AQtime 时是否遗漏了某些内容,因为我找不到它? 想知道这些功能需要多少时间才能完成其工作。
I need to profile my console program with AQ. It is in one big file (for optimizations purposes).
void function1();
void function2()
// etc more declarations
int main{
//alot of loops, and function uses
function1();
function1();
}
Profiling on "Elapsed time" default profile just gives me that main is using 100% and that it took 40sec to do its job. Nothing on how much time the functions that were called inside the main took time, only how many times they were called, which says nothing.
Am I missing something in configuring AQtime as I cant find it? Would like to get how much time the functions took time to do it's job..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AQtime 只会分析您告诉它分析的例程。 它的启动向导在帮助您正确配置方面非常有帮助; 我建议非常仔细地关注它,但一般过程是:
一般规则是,如果您不告诉 AQtime 检测例程,则不会对其进行检测。 应用程序中的所有代码都有一个默认区域,但它仅用于例程分析,而不是行分析。
AQtime will only profile the routines you tell it to profile. Its startup wizard is pretty helpful in terms of helping you configure this correctly; I'd recommend paying pretty careful attention to it, but the general procedure is:
The general rule is that if you don't tell AQtime to instrument the routine, it will not be instrumented. There is a default area for all code in your application, but it is for routine profiling, not line profiling, only.