Saeed wrote: > Hello, > I want to know that how many times the CPU go and take data from the memory > during the execution of my C++ program . I will be very thankful if any one > share the code to do the mentioned task for me or any other useful help. I am > using Intel Mote2 (arm-linux) cpu for to run my program.
I am not aware of any assembler instructions that will give you that level of detail. Even Intel VTune probably won't. There are at least a couple of types of memory available to most modern CPUs: http://en.wikipedia.org/wiki/CPU_cache The CPU generally doesn't go and fetch RAM unless it is not available on-board one of its internal caches. Makes it hard to accurately measure anything in multithreaded environments. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
