File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ jobs:
108
108
- name : Build collector
109
109
run : cargo build -p collector
110
110
111
- - name : Check benchmarks
111
+ - name : Check compile benchmarks
112
112
run : sh -x -c "ci/check-compile-benchmarks.sh"
113
113
env :
114
114
JEMALLOC_OVERRIDE : /usr/lib/x86_64-linux-gnu/libjemalloc.so
@@ -195,7 +195,7 @@ jobs:
195
195
- name : Build collector
196
196
run : cargo build -p collector
197
197
198
- - name : Check benchmarks
198
+ - name : Check profiling
199
199
run : sh -x -c "ci/check-profiling.sh"
200
200
201
201
database-check :
Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ bash -c "while true; do sleep 30; echo \$(date) - running ...; done" &
6
6
PING_LOOP_PID=$!
7
7
trap ' kill $PING_LOOP_PID' ERR 1 2 3 6
8
8
9
- # Check if the runtime benchmarks can be compiled.
10
- # Once we can actually run the benchmarks on CI, we will also execute them here.
11
- # Currently it is not possible because of `perf` permission issues when gathering perf. counters.
12
- cd collector/runtime-benchmarks
13
- cargo check
9
+ # Install a toolchain.
10
+ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
11
+ bindir=` cargo run -p collector --bin collector install_next`
12
+
13
+ # Do some benchmarking.
14
+ RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
15
+ cargo run -p collector --bin collector -- \
16
+ bench_runtime_local $bindir /rustc \
17
+ --cargo $bindir /cargo \
18
+ --iterations 1 \
19
+ --id Test
14
20
15
21
kill $PING_LOOP_PID
16
22
exit 0
You can’t perform that action at this time.
0 commit comments