Filter out methods
syn
Posts: 3 New member
Our application consists of many producer consumer models. So there will be a producer thread, and there will be several consumer threads. The producer threads run at set intervals to grab work from a queue. When they are not running they are in a Thread.Sleep().
When I attach the profiler it is largely dominated by the timings related to these thread sleeps. What is the best way to exclude certain sections of code from being sampled by the profiler, or perhaps what is the best way to filter them out once they have been sampled?
When I attach the profiler it is largely dominated by the timings related to these thread sleeps. What is the best way to exclude certain sections of code from being sampled by the profiler, or perhaps what is the best way to filter them out once they have been sampled?
Tagged:
Answers
See https://documentation.red-gate.com/display/APP8/Filtering+the+call+tree+and+methods+grid for more information.
If you filter something out of a set of results, do you think that any totals/calculations displayed should still take those things into consideration? Or do you think that as you're filtering things out you would want them discounted? Sounds like the latter to me but its best just to clarify.
I personally think that both situations apply in different circumstances. Calculations could be meaningful if they don't still take all numbers into consideration, but perhaps that is the reason you're applying filtering and we need to have a think about that logic.
Can you email your results in to support with some background information?