Measure the size of data and instruction caches of an executable file

191 Views Asked by At

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

1

There are 1 best solutions below

0
On

Use following command to get the size of executable.

size <executable file name>
size a.out

enter image description here