Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hashbrowncipher/60b5947bfea0dd8c122fa3cd858c8ba2 to your computer and use it in GitHub Desktop.
Save hashbrowncipher/60b5947bfea0dd8c122fa3cd858c8ba2 to your computer and use it in GitHub Desktop.
$ sudo ./ocperf.py stat -e cpu_clk_thread_unhalted.ref_xclk,cpu_clk_thread_unhalted.ref_xclk_any,cpu_clk_unhalted.one_thread_active -a -- sleep 5
perf stat -e cpu/event=0x3c,umask=0x1,name=cpu_clk_thread_unhalted_ref_xclk/,cpu/event=0x3c,umask=0x1,any=1,name=cpu_clk_thread_unhalted_ref_xclk_any/,cpu/event=0x3c,umask=0x2,name=cpu_clk_unhalted_one_thread_active/ -a -- sleep 5
Performance counter stats for 'system wide':
295,538,267 cpu_clk_thread_unhalted_ref_xclk [100.00%]
579,495,176 cpu_clk_thread_unhalted_ref_xclk_any [100.00%]
283,950,270 cpu_clk_unhalted_one_thread_active
5.000637559 seconds time elapsed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment