分析特定的C ++函数:“包括/排除funcspec< func name>与任何功能都不匹配“ [英] Profiling specific C++ function: "Include/exclude funcspec <func name> does not match any function"

查看:109
本文介绍了分析特定的C ++函数:“包括/排除funcspec< func name>与任何功能都不匹配“的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试使用检测分析来分析特定的C ++类实例方法。  该函数在类中定义(在全局命名空间中):

I am attempting to profile a specific C++ class instance method using instrumentation profiling.  The function is defined in a class (in the global namespace):

class Foo {
  void bar(int a);
}

并且这样调用:

Foo f;
f.bar(123);

我试图通过转到Performance Explorer来分析这个功能 - >属性 - >高级并为以下内容设置其他检测选项:

I am trying to profile the function by going to Performance Explorer -> Properties -> Advanced and setting additional instrumentation options to the following:

/include:Foo.bar

当我运行探查器时,我收到一个警告:

When I run the profiler, I get a warning:

"警告VSP2011:包含/排除funcspec Foo.bar与任何函数都不匹配"

"Warning VSP2011: Include/exclude funcspec Foo.bar does not match any function"

我也试过/包括:Foo :: bar和/ include ::: Foo :: bar并且都不起作用。  非常感谢任何帮助!

I've also tried /include:Foo::bar and /include:::Foo::bar and neither works.  Any help would be much appreciated!

谢谢,

Alex




推荐答案

Alex,

Hi Alex,

对于托管功能,您可以使用     而不是   ::
请尝试使用命名空间名称而不是类名:

For managed functions, you may use . instead of ::, Please try to use namespace name instead of class name :

  " < span style ="margin:0px; padding:0px; outline:0px; border:0px currentColor; font-family:inherit; font-style:italic; font-weight:bold"> / include:ConsoleApplication1。* " ;;

  "/include:ConsoleApplication1.*";

获取命名空间下的所有函数并查看结果。

to get the all the function under the namespace and see the result.

请参阅此
官方网页
获取有关语法的更多信息:

And please refer to this official page to get more info about the syntax:

希望有所帮助。

 

祝你好运,

Fletcher


这篇关于分析特定的C ++函数:“包括/排除funcspec&lt; func name&gt;与任何功能都不匹配“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆