Skip to content

Commit b93318f

Browse files
committed
fixup: remove callgrind headers; do start/stop with walltime
1 parent 2a8e876 commit b93318f

File tree

6 files changed

+8
-7315
lines changed

6 files changed

+8
-7315
lines changed

core/include/callgrind.h

Lines changed: 0 additions & 124 deletions
This file was deleted.

core/include/measurement.hpp

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
#include <unistd.h>
99
#endif
1010

11-
#ifdef CODSPEED_INSTRUMENTATION
12-
#include "callgrind.h"
13-
#endif
14-
1511
extern "C" {
1612
#include "core.h"
1713
}
@@ -32,7 +28,6 @@ inline std::string get_version() {
3228
#endif
3329
}
3430

35-
#ifdef CODSPEED_INSTRUMENTATION
3631
inline bool measurement_is_instrumented() {
3732
return instrument_hooks_is_instrumented(g_hooks);
3833
}
@@ -50,7 +45,7 @@ __attribute__((always_inline)) inline void measurement_stop() {
5045
instrument_hooks_stop_benchmark_inline(g_hooks);
5146
}
5247

53-
__attribute__((always_inline)) inline void measurement_executed_benchmark(
48+
__attribute__((always_inline)) inline void measurement_set_executed_benchmark(
5449
const std::string& name) {
5550
#ifdef _WIN32
5651
auto current_pid = _getpid();
@@ -59,15 +54,5 @@ __attribute__((always_inline)) inline void measurement_executed_benchmark(
5954
#endif
6055
instrument_hooks_executed_benchmark(g_hooks, current_pid, name.c_str());
6156
}
62-
#else
63-
// Stub implementations for non-instrumentation builds
64-
inline bool measurement_is_instrumented() { return false; }
65-
inline void measurement_set_metadata() {}
66-
inline void measurement_start() {}
67-
inline void measurement_stop() {}
68-
inline void measurement_executed_benchmark(const std::string& name) {
69-
(void)name;
70-
}
71-
#endif
7257

7358
#endif // MEASUREMENT_H

0 commit comments

Comments
 (0)