dotTrace 2024.2 Help

Exceptions

The Exceptions filter shows the data about exceptions occurred in the app during profiling. For example, when Exceptions is selected, Call Tree shows methods which threw the exceptions.

Select the Exceptions event to analyze exceptions and their origin. After you select the Exceptions event, you can fine-tune the result with the Exceptions: Type and Exceptions: Message sub-filters.

Exceptions: Type

The filter shows types of exceptions and filters out the corresponding point events. Use this filter to determine threads and methods that throw exceptions only of a specified type. For example, if you want to determine methods that raised exceptions of a particular type, select Exceptions and the exception type in Exceptions: Type. The methods will be shown in the Call Stack window in Hotspots.

Exceptions type

1 Exception type name.

2 The number of raised exceptions.

3 The percentage of exceptions of a certain type relative to the total number of exceptions.

For example, your application has two threads: Thread#1 and Thread#2. During profiling, Thread#1 raised 2 DivideByZeroException and 2 SomeUserException. Thread#2 raised 1 SomeUserException. The Events filter for these two threads will look like follows:

...
Exceptions 5

The Exceptions: Type filter for these two threads will look like follows:

SomeUserException 3 60.00%
DivideByZeroException 2 40.00%

To apply the Exceptions: Type filter

  • Select the desired type(s) in the filter.

    After you select a type in Exceptions: Type, other filters will show only the point events where the exceptions of the selected type were raised. For example, Hotspots in the Call Stack window will show the list of methods that raised the exceptions.

    Exceptions type. Example

Exceptions: Message

The filter shows exception messages and filters out the corresponding point events. Use this filter to determine threads and methods that raise exceptions with specified messages.

Exceptions message

1 Exception message.

2 The number of raised exceptions.

3 The percentage of exceptions with the certain message relative to the total number of exceptions.

To apply the Exceptions: Message filter

  • Select the desired message(s) in the filter.

    After you select a message, other filters will show only the point events where the exceptions with the selected message were raised.

    Exceptions message. Example
Last modified: 26 May 2024