Unmatched Task - Unmatched Task - 57368

uProf User Guide

Document ID
57368
Release Date
2025-06-09
Revision
5.1 English

Definition

An unmatched AMDTaskBegin() or AMDTaskEnd() is one of these two calls for which corresponding AMDTaskEnd() or AMDTaskBegin() (respectively) calls are not found in the generated profiled data. There can be multiple unmatched AMDTaskBegin() or AMDTaskEnd() in a generated profile data.

Note that, by definition, unmatched AMDTaskBegin() and AMDTaskEnd() means that no match for those are found from same domain and same thread.

Reason for Unmatched Task

The following are a few possible cases where we get unmatched AMDTaskBegin() or AMDTaskEnd() in the generated data (that is, # AMDTaskBegin() is not same as # AMDTaskEnd() entries in the data).

  1. (Case1) The usage of start-pause – one item of the pair was in paused state and other in resume state.
  2. (Case2) Multiple times attachment of same process - one item of the pair was in not attached state and other in attached state.
  3. (Case3) Coding error while instrumenting, forgetting to write balanced AMDTaskBegin() and AMDTaskEnd() pair.
  4. (Case4) Runtime condition. Example: some unforeseen jump or exception handling made one of AMDTaskBegin() or AMDTaskEnd() call unreached.

Handling the Unmatched Task

Any unmatched task is ignored, that is, not considered or listed in reported tasks.