Skip to content

Commit 646ed4c

Browse files
committed
ci: use staging upload URL for testing
1 parent 17f1f3d commit 646ed4c

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
if: matrix.codspeed-mode != 'off'
9494
with:
9595
mode: ${{ matrix.codspeed-mode }}
96+
upload-url: https://api.staging.preview.codspeed.io/upload
9697
run: examples/google_benchmark_cmake/build/benchmark_example
9798

9899
bazel-integration-tests:
@@ -132,6 +133,7 @@ jobs:
132133
if: matrix.codspeed-mode != 'off'
133134
with:
134135
mode: ${{ matrix.codspeed-mode }}
136+
upload-url: https://api.staging.preview.codspeed.io/upload
135137
run: bazel run //examples/google_benchmark_bazel:my_benchmark --@codspeed_core//:codspeed_mode=${{ matrix.codspeed-mode }} --@codspeed_core//:strict_warnings=on
136138

137139
cmake-build:

core/include/measurement.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ ALWAYS_INLINE void measurement_stop() {
4545
instrument_hooks_stop_benchmark_inline(g_hooks);
4646
}
4747

48-
ALWAYS_INLINE void measurement_pause() { CALLGRIND_STOP_INSTRUMENTATION; }
49-
50-
ALWAYS_INLINE void measurement_resume() { CALLGRIND_START_INSTRUMENTATION; }
51-
5248
ALWAYS_INLINE void measurement_set_executed_benchmark(const std::string& name) {
5349
auto current_pid = getpid();
5450
instrument_hooks_executed_benchmark(g_hooks, current_pid, name.c_str());

google_benchmark/src/benchmark.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ void State::PauseTiming() {
273273
uint64_t pause_timestamp = measurement_current_timestamp();
274274
#endif
275275
#ifdef CODSPEED_ANALYSIS
276-
measurement_pause();
276+
callgrind_stop_instrumentation();
277277
#endif
278278

279279
// Add in time accumulated so far
@@ -314,7 +314,7 @@ void State::ResumeTiming() {
314314
resume_timestamp_ = measurement_current_timestamp();
315315
#endif
316316
#ifdef CODSPEED_ANALYSIS
317-
measurement_resume();
317+
callgrind_start_instrumentation();
318318
#endif
319319
}
320320

0 commit comments

Comments
 (0)