Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coz doesn't work with WSL 2 #216

Open
Pesky01 opened this issue Feb 28, 2023 · 1 comment
Open

Coz doesn't work with WSL 2 #216

Pesky01 opened this issue Feb 28, 2023 · 1 comment

Comments

@Pesky01
Copy link

Pesky01 commented Feb 28, 2023

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 Provide a Rust example for measuring latency #158
  • coz-profiler is already the newest version(0.1.0-2ubuntu3)
  • my Cargo.toml does have debug = 1 for [profile.release]
@Pesky01
Copy link
Author

Pesky01 commented Mar 7, 2023

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?

@Pesky01 Pesky01 changed the title [Question] Does coz work with WSL2 Ubuntu? Coz doesn't work with WSL 2 Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant