coz
coz copied to clipboard
Coz doesn't work with WSL 2
Having issues with coz just generating empty profiles with only some lines of startup time and runtime. Is that because coz doesn't work with WSL 2 or something else?
- I am using the example, /rust/examples/toy.rs, I have also tried the example someone said worked for them in #158
-
coz-profiler is already the newest version(0.1.0-2ubuntu3)
- my
Cargo.toml
does havedebug = 1
for[profile.release]
Running the examples/toy build after cloning:
profile.coz
startup time=1678156162483923676
runtime time=11688573979
and running sudo perf stat -d ./target/release/examples/toy
:
Performance counter stats for './target/release/examples/toy':
8625.02 msec task-clock # 1.824 CPUs utilized
4 context-switches # 0.464 /sec
1 cpu-migrations # 0.116 /sec
92 page-faults # 10.667 /sec
34375375120 cycles # 3.986 GHz (74.96%)
8573571 stalled-cycles-frontend # 0.02% frontend cycles idle (74.96%)
9317817377 stalled-cycles-backend # 27.11% backend cycles idle (74.96%)
74838243720 instructions # 2.18 insn per cycle
# 0.12 stalled cycles per insn (75.05%)
21993752638 branches # 2.550 G/sec (75.17%)
217107 branch-misses # 0.00% of all branches (75.19%)
30838844206 L1-dcache-loads # 3.576 G/sec (75.00%)
458933 L1-dcache-load-misses # 0.00% of all L1-dcache accesses (74.88%)
<not supported> LLC-loads
<not supported> LLC-load-misses
4.729485388 seconds time elapsed
8.618147000 seconds user
0.000000000 seconds sys
Is WSL not reporting some information that coz needs?