- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I'm trying to analyze which line of code the preemption context switches and synchronization context switches come from in my program using VTune 2013 update 17. I have no idea how to do it. Can anyone help me out? Many thanks.
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I understood your question correctly Context Switches come from OS scheduler and its scheduling algorithms.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Click on context switch in timeline, then choose metric (e.g. Context Switch Time) in stack pane and you'll see stack related to this context switch according to metric selected. You can now drill down to source or disasm double clicking to top stack frame.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page