3 Commits

Author SHA1 Message Date
Wael Yehia
9ef7287d42 [profile] runtime counter relocation needed on all windows targets (#127858)
See PR comments for the discussion that led to this commit.
2025-03-12 03:13:33 +00:00
Wael Yehia
d6ec32c8f2
[profile] runtime counter relocation is needed on windows-msvc targets (#127858)
Continuous profile syncing is supported on windows, and it also relies on runtime counter relocation (based on this
test [1])

Thanks to @anhtuyenibm for pointing it out to me.

[1] https://github.com/llvm/llvm-project/blob/main/compiler-rt/test/profile/ContinuousSyncMode/runtime-counter-relocation.c
---------

Co-authored-by: Wael Yehia <wyehia@ca.ibm.com>
2025-02-24 17:17:14 -05:00
Wael Yehia
8e61aae4a8
[profile] Add a clang option -fprofile-continuous that enables continuous instrumentation profiling mode (#124353)
In Continuous instrumentation profiling mode, profile or coverage data
collected via compiler instrumentation is continuously synced to the
profile file. This feature has existed for a while, and is documented
here:

https://clang.llvm.org/docs/SourceBasedCodeCoverage.html#running-the-instrumented-program
This PR creates a user facing option to enable the feature.

---------

Co-authored-by: Wael Yehia <wyehia@ca.ibm.com>
2025-02-08 17:25:07 -05:00