@@ -28,9 +28,21 @@ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=
28
28
test -f results/Ztp-Test-helloworld-Check-Full
29
29
grep -q " time:.*total" results/Ztp-Test-helloworld-Check-Full
30
30
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.
34
46
35
47
# Cachegrind.
36
48
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
58
70
test -f results/clgann-Test-helloworld-Check-Full
59
71
grep -q " Profile data file" results/clgann-Test-helloworld-Check-Full
60
72
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
62
83
63
84
# Massif.
64
85
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
0 commit comments