Skip to content

Instantly share code, notes, and snippets.

@vext01
Created December 9, 2020 14:07
Show Gist options
  • Save vext01/4d91a0980be07a9efd7ef42c67a05670 to your computer and use it in GitHub Desktop.
Save vext01/4d91a0980be07a9efd7ef42c67a05670 to your computer and use it in GitHub Desktop.
Valgrind on yorick test.
$ /home/vext01/research/yorick/yk/target/debug/deps/ykrt-f04ce32da1a52e50 dumb_interp
running 1 test
test mt::tests::dumb_interpreter ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 5 filtered out; finished in 0.96s
$ valgrind --tool=cachegrind /home/vext01/research/yorick/yk/target/debug/deps/ykrt-f04ce32da1a52e50 dumb_interp
==31610== Cachegrind, a cache and branch-prediction profiler
==31610== Copyright (C) 2002-2017, and GNU GPL'd, by Nicholas Nethercote et al.
==31610== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info
==31610== Command: /home/vext01/research/yorick/yk/target/debug/deps/ykrt-f04ce32da1a52e50 dumb_interp
==31610==
--31610-- warning: L3 cache found, using its data for the LL simulation.
--31610-- warning: specified LL cache: line_size 64 assoc 11 total_size 25,952,256
--31610-- warning: simulated LL cache: line_size 64 assoc 12 total_size 25,165,824
running 1 test
test mt::tests::dumb_interpreter ... FAILED
failures:
---- mt::tests::dumb_interpreter stdout ----
thread 'mt::tests::dumb_interpreter' panicked at 'assertion failed: `(left == right)`
left: `8`,
right: `10`', ykrt/src/mt.rs:615:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
failures:
mt::tests::dumb_interpreter
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 5 filtered out; finished in 5.57s
==31610==
==31610== I refs: 713,742,058
==31610== I1 misses: 9,765,442
==31610== LLi misses: 10,746
==31610== I1 miss rate: 1.37%
==31610== LLi miss rate: 0.00%
==31610==
==31610== D refs: 490,360,327 (214,392,064 rd + 275,968,263 wr)
==31610== D1 misses: 243,856 ( 170,875 rd + 72,981 wr)
==31610== LLd misses: 92,220 ( 42,059 rd + 50,161 wr)
==31610== D1 miss rate: 0.0% ( 0.1% + 0.0% )
==31610== LLd miss rate: 0.0% ( 0.0% + 0.0% )
==31610==
==31610== LL refs: 10,009,298 ( 9,936,317 rd + 72,981 wr)
==31610== LL misses: 102,966 ( 52,805 rd + 50,161 wr)
==31610== LL miss rate: 0.0% ( 0.0% + 0.0% )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment