File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,9 @@ jobs:
175
175
echo "${PWD}/build/bin" >> $GITHUB_PATH
176
176
177
177
- name : Install profilers
178
- run : cargo install --version 0.4.12 cargo-llvm-lines
178
+ run : |
179
+ cargo install --version 0.4.12 cargo-llvm-lines
180
+ cargo install samply
179
181
180
182
- name : Install Bytehound
181
183
run : |
Original file line number Diff line number Diff line change @@ -39,6 +39,18 @@ cargo build -p collector --bin rustc-fake
39
39
# oprofile: untested... it's not used much, and might have the same problems
40
40
# that `perf` has due to virtualized hardware.
41
41
42
+ RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
43
+ cargo run -p collector --bin collector -- \
44
+ profile_local samply $bindir /rustc \
45
+ --id Test \
46
+ --profiles Check \
47
+ --cargo $bindir /cargo \
48
+ --include helloworld \
49
+ --scenarios Full
50
+ test -f results/samply-Test-helloworld-Check-Full
51
+ # Samply output files are JSON, the first field is called "meta".
52
+ grep -q " meta" results/samply-Test-helloworld-Check-Full
53
+
42
54
# Cachegrind.
43
55
RUST_BACKTRACE=1 RUST_LOG=raw_cargo_messages=trace,collector=debug,rust_sysroot=debug \
44
56
cargo run -p collector --bin collector -- \
You can’t perform that action at this time.
0 commit comments