Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3079)

Unified Diff: build/config/win/BUILD.gn

Issue 2924093003: (Do not land) Very hacky patch for using -fprofile-functions in the Win-Clang build
Patch Set: Add code to print functions by call frquency Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | tools/cygprofile/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/win/BUILD.gn
diff --git a/build/config/win/BUILD.gn b/build/config/win/BUILD.gn
index 940e55c6c28f033dea5235f08f78ca4df6b6c6a5..6d48b51032856d549f457f37fc44116ca8b59e58 100644
--- a/build/config/win/BUILD.gn
+++ b/build/config/win/BUILD.gn
@@ -436,3 +436,21 @@ config("midl_warnings") {
cflags = [ "-Wno-extra-tokens" ]
}
}
+
+# Instrumentation -------------------------------------------------------------
+
+config("default_cygprofile_instrumentation") {
+ if (use_order_profiling) {
+ configs = [ ":cygprofile_instrumentation" ]
+ } else {
+ configs = [ ":no_cygprofile_instrumentation" ]
+ }
+}
+
+config("cygprofile_instrumentation") {
+ defines = [ "CYGPROFILE_INSTRUMENTATION=1" ]
+ cflags = [ "-Xclang", "-finstrument-functions" ]
+}
+
+config("no_cygprofile_instrumentation") {
+}
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | tools/cygprofile/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698