Is there a way to measure the following aspects when running an executable file (after compiling a c, c++ .... code) -Size of the used data and instruction caches in (KB), or as a percentage -Percentage of CPUs use
Asked
Active
Viewed 171 times
2
-
1Executable files do not have data and instruction caches. – Ian Abbott Jan 20 '17 at 10:31
-
I meant when running the executable file – Yasser Nezzari Jan 20 '17 at 10:36
-
I imagine the caches will be full most of the time. – Ian Abbott Jan 20 '17 at 10:39
-
are you saying 100% of dcaches and icaches are used? is there a tool to see this ? – Yasser Nezzari Jan 20 '17 at 10:42
-
Unless something has flushed the caches recently they would normally be full unless the processor is enters a tight loop before the caches fill up. – Ian Abbott Jan 20 '17 at 16:50
-
1You may be able to use [Cachegrind](http://valgrind.org/docs/manual/cg-manual.html) on your program. – Ian Abbott Jan 20 '17 at 16:56