Can I just trace specified methods?

Can I just trace specified methods? I don't want to trace every method that executed.
I hope there would be some Attribute that can allow me put it on a method and set if I am hoping trace the next method that is invoked by the method.
For example.
[TraceIt( JustThis = true )]
public void DoSomething()
{
     Athing();  // dotTrace won't trace this Athing() method.
     Bthing();  // dotTrace will trace this Bthing() method.
}

[TraceIt]
private void BThing()
{
     CThing();
}

I feel it much too slower than ever if an application is started with dotTrace and everything under trace. I just want to trace my methods.
The "filter" feature in dotTrace works after getting snapshot. If it could work before getting snapshot, that would be very appreciated.

1

Please sign in to leave a comment.