I used Hardware Event-based Sampling Analysis 0 Analysis or Advanced Hotspots Analysis to collect the total Context Switches of a program, but the number of Context Switches that I got was much fewer than the truth. I don't know the reason.
Just for everyone's info, the private messaging system is not working. I received an email notification that a message was available, but I can't read it on IDZ and I can't send a private message. IDZ support has been notified.
WRT to this post, LIU Q, what method did you or others use to measure the context switches that you think disagrees with VTune Amplifier XE?
I can't respond via PM. Please just post here.
Are you comparing context switches counted by VTune Amplifier XE to another tool or are you saying the number of context switches in the Top Down view don't match the Bottom Up view?
Yes, but where did that "true" number come from? And, why does s/he think it is "true"?
That is, what tool measured it and how does that tool measure context switches?
BTW, are you talking about Windows* or Linux* in this case?
I do not know which tool was used to get those numbers. It is also unclear which OS is used for that test.
Unfortunately @LIU Q did not respond to my private message where I asked him those questions.