Skip to content

Commit 1200dbb

Browse files
committed
fix: dont manually call valgrind macros
1 parent 0e18f9f commit 1200dbb

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

core/include/measurement.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,11 @@ inline void measurement_set_metadata() {
4444
}
4545

4646
__attribute__((always_inline)) inline void measurement_start() {
47-
// Keep the callgrind macros here, so that they are properly inlined.
48-
// Otherwise, we have an additional function call overhead to the
49-
// instrument-hooks library.
50-
CALLGRIND_ZERO_STATS;
51-
CALLGRIND_START_INSTRUMENTATION;
52-
5347
instrument_hooks_start_benchmark(get_hooks());
5448
}
5549

5650
__attribute__((always_inline)) inline void measurement_stop(
5751
const std::string& name) {
58-
CALLGRIND_STOP_INSTRUMENTATION;
59-
6052
instrument_hooks_stop_benchmark(get_hooks());
6153

6254
#ifdef _WIN32

0 commit comments

Comments
 (0)