is there any library 开发者_如何学JAVAjust like unit testing library, but instead of testing for correctness, its testing the performance of such functions, the output is execution time, cpu instruction count, performance variance, cache-miss, etc..
I use gprof and valgrind for performance profiling. They certainly work on Linux and you can pretty much do all the things you mention.
精彩评论