Releasing #libcpucycles library to count CPU cycles: cpucycles.cr.yp.to Supports counters for amd64 (both PMC and TSC), arm32, arm64 (both PMC and VCT), mips64, ppc32, ppc64, riscv32, riscv64, sparc64, and x86, plus automatic fallbacks to various OS-level timing mechanisms.
Conversation
Replying to
Very cool, would be interesting to see if this could be extended to instruction retirement counting…


