Skip to content

Commit 1d10b03

Browse files
authored
Merge pull request #730 from nnethercote/still-more-profiler-testing
Add still more profiler testing.
2 parents d85b4ae + 6ef8912 commit 1d10b03

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

ci/check-profiling.sh

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,21 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
2828
test -f results/Ztp-Test-helloworld-Check-Full
2929
grep -q "time:.*total" results/Ztp-Test-helloworld-Check-Full
3030

31-
# perf-record: TODO
32-
33-
# oprofile: TODO
31+
# perf-record: untested because we get "The instructions:u event is not
32+
# supported" on GitHub Actions when the code below is run. Maybe because the
33+
# hardware is virtualized and performance counters aren't available?
34+
#RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
35+
# cargo run -p collector --bin collector -- \
36+
# profile_local perf-record $bindir/rustc Test \
37+
# --builds Check \
38+
# --cargo $bindir/cargo \
39+
# --include helloworld \
40+
# --runs Full
41+
#test -f results/perf-Test-helloworld-Check-Full
42+
#grep -q "PERFILE" results/perf-Test-helloworld-Check-Full
43+
44+
# oprofile: untested... it's not used much, and might have the same problems
45+
# that `perf` has due to virtualized hardware.
3446

3547
# Cachegrind.
3648
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
@@ -58,7 +70,16 @@ grep -q "creator: callgrind" results/clgout-Test-helloworld-Check-Full
5870
test -f results/clgann-Test-helloworld-Check-Full
5971
grep -q "Profile data file" results/clgann-Test-helloworld-Check-Full
6072

61-
# DHAT: needs Valgrind 3.15, but only Valgrind 3.13 is available on GitHub.
73+
# DHAT.
74+
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
75+
cargo run -p collector --bin collector -- \
76+
profile_local dhat $bindir/rustc Test \
77+
--builds Check \
78+
--cargo $bindir/cargo \
79+
--include helloworld \
80+
--runs Full
81+
test -f results/dhout-Test-helloworld-Check-Full
82+
grep -q "dhatFileVersion" results/dhout-Test-helloworld-Check-Full
6283

6384
# Massif.
6485
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \

0 commit comments

Comments
 (0)