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

Build instruction profiler runtime as part of compiler-rt #38608

Closed
wants to merge 1 commit into from
Closed

Build instruction profiler runtime as part of compiler-rt #38608

wants to merge 1 commit into from

Commits on May 1, 2017

  1. Add profiling support, through the rustc -Z profile flag.

    When -Z profile is passed, the GCDAProfiling LLVM pass is added
    to the pipeline, which uses debug information to instrument the IR.
    After compiling with -Z profile, the $(OUT_DIR)/$(CRATE_NAME).gcno
    file is created, containing initial profiling information.
    After running the program built, the $(OUT_DIR)/$(CRATE_NAME).gcda
    file is created, containing branch counters.
    
    The created *.gcno and *.gcda files can be processed using
    the "llvm-cov gcov" and "lcov" tools. The profiling data LLVM
    generates does not faithfully follow the GCC's format for *.gcno
    and *.gcda files, and so it will probably not work with other tools
    (such as gcov itself) that consume these files.
    whitequark committed May 1, 2017
    Configuration menu
    Copy the full SHA
    42754ce View commit details
    Browse the repository at this point in the history