从分析中排除类和类的方法 [英] Exclude a class and a class's method from profiling

查看:58
本文介绍了从分析中排除类和类的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过执行此操作将一个类和另一个类的方法排除在分析之外,

I tried excluding a class and a different class's method from profiling by doing this,

vsinstr.exe/dumpfuncs/Exclude:Class1 :: MethodToExclude C:\ App \ Test.exe> prof.txt

vsinstr.exe /dumpfuncs /Exclude:Class1::MethodToExclude C:\App\Test.exe > prof.txt

vsinstr.exe/dumpfuncs/Exclude:Class2 :: * C:\ App \ Test.exe> prof_1.txt

vsinstr.exe /dumpfuncs /Exclude:Class2::* C:\App\Test.exe > prof_1.txt

我希望在prof.txt中看不到Class1 :: MethodToExclude,在prof_1.txt中看不到Class2 :: Anything.

I expected that I would not see Class1::MethodToExclude in prof.txt and Class2::Anything in prof_1.txt.

但是我发现prof.txt中确实存在Class1 :: MethodToExclude,而prof_1.txt中却存在Class2 :: A,Class2 :: B....

But I found that Class1::MethodToExclude did exist in prof.txt and Class2:: A, Class2::B, ... existed in prof_1.txt.

如何成功将其从配置文件中排除

How do I successfully exclude them from my profiling.

谢谢

Rama

推荐答案

我确实知道该命令实际上不会检测代码,而只是给我列出了如果我进行检测,将会得到检测.但是我得到的列表是错误的,因此没有必要尝试检测代码.

I do understand that this command would not actually instrument the code, but only give me the list of functions that would get instrumented if I do instrumentation. But the list I get is wrong, so there is no point trying to instrument the code.

谢谢

Rama


这篇关于从分析中排除类和类的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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