Question

Is it possible to collect data for IntelliTrace only for some code area? E.g., I have some method:

public void Foo()
{
  SomeMethod1();//collect
  SomeMethod2();//collect
  SomeMethod3();//not collect
  ...
}

In this sample I want to collect data only for SomeMethod1() and SomeMethod2(). Is it possible?

Was it helpful?

Solution

By creating a custom IntelliTrace event you can collect specific data. Take a look at this post for details on creating custom events: http://blog.qetza.net/en/2010/03/08/vs-2010-personnalisation-des-vnements-de-lintellitrace/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top