Displaying 2 results from an estimated 2 matches for "coverage_mt".
2013 Oct 03
2
[LLVMdev] question about -coverage
...tadata to the actual accesses as well, or simply
find the corresponding GEP?
Finally, does anyone have performance numbers for coverage?
As of today it seems completely thread-hostile since __llvm_gcov_ctr is not
thread-local.
A simple stress test shows that coverage slows down by 50x!
% cat ~/tmp/coverage_mt.cc
#include <pthread.h>
__thread int x;
__attribute__((noinline))
void foo() {
x++;
}
void *Thread(void *) {
for (int i = 0; i < 100000000; i++)
foo();
return 0;
}
int main() {
static const int kNumThreads = 16;
pthread_t t[kNumThreads];
for (int i = 0; i < kNumThreads...
2013 Oct 04
0
[LLVMdev] question about -coverage
...ell, or simply
> find the corresponding GEP?
>
> Finally, does anyone have performance numbers for coverage?
> As of today it seems completely thread-hostile since __llvm_gcov_ctr is
> not thread-local.
> A simple stress test shows that coverage slows down by 50x!
> % cat ~/tmp/coverage_mt.cc
> #include <pthread.h>
> __thread int x;
> __attribute__((noinline))
> void foo() {
> x++;
> }
>
> void *Thread(void *) {
> for (int i = 0; i < 100000000; i++)
> foo();
> return 0;
> }
>
> int main() {
> static const int kNumThrea...