用于检测C/C++应用程序中的错误共享的工具

Met*_*est 9 c c++ false-sharing

是否有任何工具可以检测并报告用C或C++编写的应用程序的虚假共享

小智 4

试试警长和掠夺者。Sheriff 位于https://github.com/plasma-umass/sheriff,而 Predator 位于https://github.com/plasma-umass/Predator。Predator 是一种基于编译器的方法,您必须使用新的 LLVM 编译器重新编译您的程序。它是迄今为止最详尽的检测工具。Sheriff 是一个库,但如果您使用 pthreads 库,它只能检测错误共享。