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

Unified Diff: tools/cygprofile/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/win/BUILD.gn ('k') | tools/cygprofile/cygprofile2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cygprofile/BUILD.gn
diff --git a/tools/cygprofile/BUILD.gn b/tools/cygprofile/BUILD.gn
index f6408695d13f9d5346cee73731fec194be42f9d0..ca963af204bd45e72662a9f3c0f59bf1504f0f5c 100644
--- a/tools/cygprofile/BUILD.gn
+++ b/tools/cygprofile/BUILD.gn
@@ -4,34 +4,38 @@
static_library("cygprofile") {
sources = [
- "cygprofile.cc",
- "cygprofile.h",
+ "cygprofile2.cc",
+ #"cygprofile.h",
]
- configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
- configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
+ if (is_win) {
+ print(configs)
+ configs -= [ "//build/config/win:default_cygprofile_instrumentation" ]
+ configs += [ "//build/config/win:no_cygprofile_instrumentation" ]
+ }
+
- deps = [
+ #deps = [
# This adds uninstrumented symbols to the static library from base.
# These symbols are likely *not* to be used because there are many other
# duplicates in other objects/libraries.
- "//base",
- ]
+ #"//base",
+ #]
}
-executable("cygprofile_unittests") {
- testonly = true
-
- sources = [
- "cygprofile_unittest.cc",
- ]
-
- configs -= [ "//build/config/android:default_cygprofile_instrumentation" ]
- configs += [ "//build/config/android:no_cygprofile_instrumentation" ]
-
- deps = [
- ":cygprofile",
- "//base",
- "//testing/gtest",
- ]
-}
+#executable("cygprofile_unittests") {
+#testonly = true
+#
+#sources = [
+#"cygprofile_unittest.cc",
+#]
+#
+##configs -= [ "//build/config/win:default_cygprofile_instrumentation" ]
+##configs += [ "//build/config/win:no_cygprofile_instrumentation" ]
+#
+#deps = [
+#":cygprofile",
+#"//base",
+#"//testing/gtest",
+#]
+#}
« no previous file with comments | « build/config/win/BUILD.gn ('k') | tools/cygprofile/cygprofile2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698