Inquiry regarding obtaining coverage information for Rustc using grcov

I am writing to seek assistance regarding obtaining coverage information for my own test suite on Rustc using grcov. I have attempted the following steps but have not been successful thus far:

  1. I built Rustc from the source code.
  2. I utilized the following command:
    grcov /home/trst_cov/*.profraw -s /home/rust/compiler -b /home/rust/install/bin -t html -o ./
    ```
    Here, `/home/trst_cov/*.profraw` was generated using the following script:
    ````sh
    /home/rust/build/x86_64-unknown-linux-gnu/stage1/bin/rustc -Cinstrument-coverage -Zprofile code.rs
    ```
    
    

However, the generated ./html directory only contains the index.html file, and the Rustc source code level coverage information is missing. I am uncertain about the specific step where the issue might lie. I would greatly appreciate any guidance or suggestions on how to obtain coverage information for my own test suite on Rustc.

Thank you in advance for your attention to this matter. Your assistance would be highly valued.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.