Skip to content

Commit 15ec58b

Browse files
committed
chore: manually call callgrind markers
1 parent e9bad32 commit 15ec58b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ bazel_dep(name = "instrument_hooks", version = "1.0.0")
33

44
git_override(
55
module_name = "instrument_hooks",
6-
commit = "8e872739f0d6866810edb9b4f1816a53bfdc11a7",
6+
commit = "19ea784c0c1fcba0156c370307a896604166bf64",
77
remote = "https://github.com/CodSpeedHQ/instrument-hooks",
88
)

core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ include(FetchContent)
1515
FetchContent_Declare(
1616
instrument_hooks
1717
GIT_REPOSITORY https://github.com/CodSpeedHQ/instrument-hooks/
18-
GIT_TAG 8e872739f0d6866810edb9b4f1816a53bfdc11a7
18+
GIT_TAG 19ea784c0c1fcba0156c370307a896604166bf64
1919
)
2020
FetchContent_MakeAvailable(instrument_hooks)
2121

core/include/measurement.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ extern "C" {
1919
inline InstrumentHooks* get_hooks() {
2020
static InstrumentHooks* g_hooks = nullptr;
2121
if (!g_hooks) {
22+
instrument_hooks_set_feature(FEATURE_DISABLE_CALLGRIND_MARKERS, true);
23+
2224
g_hooks = instrument_hooks_init();
2325
}
2426
return g_hooks;
@@ -45,6 +47,7 @@ inline void measurement_set_metadata() {
4547

4648
__attribute__((always_inline)) inline void measurement_start() {
4749
instrument_hooks_start_benchmark(get_hooks());
50+
CALLGRIND_START_INSTRUMENTATION;
4851
}
4952

5053
__attribute__((always_inline)) inline void measurement_stop(

0 commit comments

Comments
 (0)