How to characterize a workload by obtaining the instruction type breakdown?
问题 I want to obtain the percentage of memory read-write instructions in a test program, preferably dynamically. Apart from counting instructions in the gdb asm dump, which is static anyway, is there an easier way to obtain it? Valgrind provides total heap usage. Perf has some nice features but does not support WSL. Pin has an instruction count capability but it I am not sure if it supports WSL. 回答1: (Update: PIN reportedly doesn't work under WSL. But it doesn't require perf counters so it's