Why Is this Task Longer in Duration than I Expect?
There are a few options for determining why a task seems to run longer than you expect it to:
- Add more detailed task instrumentation within any long task you are interested in to determine what portion of the long task is consuming the most time.
- Mark up any code loops that might be lengthy with __itt_task_begin and __itt_task_end ITT APIs.
- Use __itt_metadata_add API at the end of a loop including an integer counter and denote how many times a loop was executed.
- Re-run the application and take a new capture trace. You can iterate this process as many times as needed in a drill-down fashion.
A Long Task
A Long Task with More Granular Tracing