Closed jmr closed 10 months ago
@mtrofin
I'm not sure why most of the sanitizer tests are failing.
The history on my branch is getting out of control. This should be squashed-and-merged when it's ready.
I'm not sure why most of the sanitizer tests are failing.
they're passing at head, i'm not sure why your change would break them.. only thing i can think (as it's coming from __assert) is that you're referencing assert
without including
The history on my branch is getting out of control. This should be squashed-and-merged when it's ready.
it will be.. always do the squash when i merge :)
Can you trigger the presubmits on HEAD? I wonder if something changed with the sanitizer setup.
Can you trigger the presubmits on HEAD? I wonder if something changed with the sanitizer setup.
yeah they're failing for changes to documents
Thanks for fixing this. I forgot how Counter
worked and assumed they are collected "in total" by design. Thanks!
Previously,
counters
was updated inPauseTiming()
withcounters[name] += Counter(measurement, kAvgIteration)
.The first
counters[name]
call inserts a counter with no flags.There is no
operator+=
forCounter
, so the insertion is done by converting theCounter
to adouble
, then constructing aCounter
to insert from thedouble
, which drops the flags.Pre-insert the
Counter
with the correct flags, then only updateCounter::value
.Introduced in https://github.com/google/benchmark/commit/1c64a36c5b8ee75d462b3fe7a9d020c66a2a1094 ([perf-counters] Fix pause/resume (https://github.com/google/benchmark/pull/1643)).