| Issue |
87447
|
| Summary |
[Bug] llvm-cov export dooes not respect SOURCES filter
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
zilun-wang
|
I am using LLVM version 18.0.0 on the Debian system.
I was trying to use llvm-cov to export the coverage report for chromium. Considering that the project is huge and I only need to get coverage reports for specific directories, I used the SOURCES filter in my command.
However, I found the filter doesn't work.
The command I used is as follows:
`llvm-cov export --format=lcov --instr-profile="" [PathToBinary] [PathOfSources]`
I also used `--dump-collected-paths` to ensure the [PathOfSources] is correct and indeed found.
But when I ran the command, I got a lcov report of all the source files, which should not happen.
In addition, I also tried using text (json) format. But the condition is even worse; the process consumed too much memory and finally got stuck.
My PC has 32GB RAM and 50GB swap space, which are all consumed. So I believe llvm-cov export doesn't respect the SOURCES filter for both json and lcov formats.
P.S. I understand that the document requires to use `--sources=[PathOfSources]` to define the SOURCES. But I tried both, and they all didn't work. And I found when using `--sources=[PathOfSources]`, the `--dump-collected-paths` option cannot identify the [PathOfSources].
I have been stuck on this problem for several days, but I still cannot address it. Although I found some previous related issues (#54769 and #54806) , they seem not clearly explained or addressed.
Look forward for your feedback.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs