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

Optionally enable LLVM profile continuous mode #15166

Closed
wants to merge 1 commit into from

Commits on Apr 3, 2022

  1. Optionally enable LLVM profile continuous mode

    LLVM's profile instrumentation offers a continuous mode in which
    counters are continuously synced to a file rather than being dumped
    once in an exit hook. This is useful for coverage runs that include
    binaries that exit abnormally (e.g. in failure tests), but may require
    additional compiler flags and can negatively impact runtime performance
    and memory usage.
    
    Enabling continuous mode requires adding the "%c" modifier to the value
    of the LLVM_PROFILE_FILE environment variable. With this commit, the
    collect_coverage.sh script adds the modifier if the test environment has
    the variable LLVM_PROFILE_CONTINUOUS_MODE set. This allows both all and
    individual tests to use continuous mode by setting the variable, either
    via --test_env or the env attribute.
    fmeum committed Apr 3, 2022
    Configuration menu
    Copy the full SHA
    f3d2fcd View commit details
    Browse the repository at this point in the history