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:

  1. 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.
  2. Mark up any code loops that might be lengthy with __itt_task_begin and __itt_task_end ITT APIs.  
  3. Use __itt_metadata_add API at the end of a loop including an integer counter and denote how many times a loop was executed.
  4. 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.

  

Intel Graphics Performance Analyzers sa task Why Is this Task Longer in Duration than I Expect?
A Long Task

 

Intel Graphics Performance Analyzers sa long task Why Is this Task Longer in Duration than I Expect?

A Long Task with More Granular Tracing

Why Is this Task Longer in Duration than I Expect?