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

Add %c to LLVM_PROFILE_FILE #280

Closed
wants to merge 1 commit into from
Closed

Add %c to LLVM_PROFILE_FILE #280

wants to merge 1 commit into from

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented May 13, 2023

Refs: https://clang.llvm.org/docs/SourceBasedCodeCoverage.html#running-the-instrumented-program

“%c” expands out to nothing, but enables a mode in which profile counter updates are continuously synced to a file. This means that if the instrumented program crashes, or is killed by a signal, perfect coverage information can still be recovered. Continuous mode does not support value profiling for PGO, and is only supported on Darwin at the moment. Support for Linux may be mostly complete but requires testing, and support for Windows may require more extensive changes: please get involved if you are interested in porting this feature.

Closes #235

@taiki-e taiki-e marked this pull request as draft May 13, 2023 09:29
@taiki-e
Copy link
Owner Author

taiki-e commented May 13, 2023

hmm

https://github.com/taiki-e/cargo-llvm-cov/actions/runs/4966192699/jobs/8887490630?pr=280

LLVM Profile Error: __llvm_profile_counter_bias is undefined

@taiki-e taiki-e force-pushed the llvm-profile-file-c branch from cb5fc88 to 179bbfe Compare September 2, 2023 16:21
@taiki-e taiki-e closed this Sep 2, 2023
@taiki-e taiki-e deleted the llvm-profile-file-c branch September 2, 2023 16:49
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

Successfully merging this pull request may close these issues.

No coverage from killed subprocesses
1 participant