I tried using "perf" command in my Ubuntu Virtual Machine hosted on GCP. But when I run:
sudo perf stat -e task-clock,cycles,instructions,cache-references,cache-misses ./AppName
Output:
Performance counter stats for './AppName':
490.299513 task-clock (msec) # 0.081 CPUs utilized
<not supported> cycles
<not supported> instructions
<not supported> cache-references
<not supported> cache-misses
6.036963754 seconds time elapsed
Except the task-clock all others are shown as "not supported". I want the cache-references and cache-misses data. So is there any alternative to "perf"?