@@ -28,9 +28,21 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
2828test -f results/Ztp-Test-helloworld-Check-Full
2929grep -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.
3648RUST_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
5870test -f results/clgann-Test-helloworld-Check-Full
5971grep -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.
6485RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
0 commit comments