Can dotTrace capture a method's parameters values?

Can dotTrace capture the values going into a method?

1
5 comments
Official comment

Hi.
This feature is not supported.

It would be very useful for figuring out whether a cache was useful, by recording how often a method was called with different / same parameters and so could make effective use of a cache.

0

The feature doesn't make sense because profiler will perform instrumentation for each call to distinguish between methods. It is not possible in "Sampling" and "Timeline" mode. This kind of instrumentation would be even more complicated than "Line-by-line" mode would cause huge overhead. Profiling results will be irrelevant in terms of performance in this case.

0

It does make some sense in Tracing mode however, when accurate call counts are already returned.  May be it should be opt-in to avoid excessive overhead.  Ie select specific methods to capture

0

David,

Thank you for your feedback. We'll think about what we can do about it.

0

Please sign in to leave a comment.