-
Notifications
You must be signed in to change notification settings - Fork 240
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
genhtml 2.2 memory usage regression #329
Comments
I guess it is the What is in your |
|
Sorry - missed your Can you check which version of lcov you have installed - and specifically which 77K LOC is a lot - but not unprecedented. I would not have expected a huge issue. That said: I guess that this file is generated code, and I seriously doubt that you care about whether it is exercised or not (do you write or generate tests to test all of it?) |
To verify our speculation around the suspect large file, you could run genhtml twice:
If the first runs badly and the second better...then we have confirmed our suspicion. After confirming, if you run yet again after adding the Adding parallelism will somewhat complicate the debugging - as the order things get processed will not be deterministic - however, the child that croaks should be the huge file, assuming that our speculation is correct. If this is an opensource/public project: it would likely help to attach a tarball of that source file and the captured .info for it. |
I generated a fake example and ran with my sandbox genhtml $ /usr/bin/time -f '%E %M' ../../lcov/bin/genhtml -o x output.info --profile
Reading tracefile output.info.
Found 2 entries.
Found common filename prefix "/home/hcox/sample"
Generating output.
Processing file sample/main.c
lines=1002 hit=1002 functions=1 hit=1
Processing file sample/src/func0.c
lines=78000 hit=40000 functions=1000 hit=1000
Overall coverage rate:
source files: 2
lines.......: 51.9% (41002 of 79002 lines)
functions...: 100.0% (1001 of 1001 functions)
Message summary:
no messages were reported
0:11.44 906052 0
Seems not to not exhibit problems. I think I need more information, to reproduce your issue. |
hi,
the recent update to version 2.2 absolutely blows up my memory (I can see a quick 70%/32gb spike then my computer stops responding)
I'm using it to generate reports for a medium-large c++/Python library on an archlinux vm
reproducing it can requires a bit of time to run the test-suite:
this is adapted from my actual CI scripts:
https://github.com/openturns/openturns/blob/master/.ci_support/run_docker_coverage.sh
if I revert back to 2.1 the memory stays <6%:
The text was updated successfully, but these errors were encountered: