Analyzers
Community support for Analyzers (Intel VTune™ Profiler, Intel Advisor, Intel Inspector)
4969 Discussions

Using libittnotify to track tasks across threads

Stephan_T_
Beginner
263 Views

Hello,

I would like to use the user task annotation of libittnotify to track a task as it is moved between threads. In my specific case, a custom, Windows fiber-based scheduler is used, which resumes the fibers on different threads. Each task is marked with __itt_task_start and __itt_task_end on its current thread before it moves to another thread.

Yet, when inspecting the result in vtune, the task is only shown on one thread.

Is this expected? Can a single task only ever exist on the same thread? If so, what would be a good workaround for this situation?

Thanks and best regards

Stephan

0 Kudos
1 Reply
Stephan_T_
Beginner
263 Views

Ok, problem found. There was a rogue fiber switch, which did not end the task on the proper thread.

0 Kudos
Reply