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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « build/config/win/BUILD.gn ('k') | tools/cygprofile/cygprofile2.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 static_library("cygprofile") { 5 static_library("cygprofile") {
6 sources = [ 6 sources = [
7 "cygprofile.cc", 7 "cygprofile2.cc",
8 "cygprofile.h", 8 #"cygprofile.h",
9 ] 9 ]
10 10
11 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] 11 if (is_win) {
12 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] 12 print(configs)
13 configs -= [ "//build/config/win:default_cygprofile_instrumentation" ]
14 configs += [ "//build/config/win:no_cygprofile_instrumentation" ]
15 }
16
13 17
14 deps = [ 18 #deps = [
15 # This adds uninstrumented symbols to the static library from base. 19 # This adds uninstrumented symbols to the static library from base.
16 # These symbols are likely *not* to be used because there are many other 20 # These symbols are likely *not* to be used because there are many other
17 # duplicates in other objects/libraries. 21 # duplicates in other objects/libraries.
18 "//base", 22 #"//base",
19 ] 23 #]
20 } 24 }
21 25
22 executable("cygprofile_unittests") { 26 #executable("cygprofile_unittests") {
23 testonly = true 27 #testonly = true
24 28 #
25 sources = [ 29 #sources = [
26 "cygprofile_unittest.cc", 30 #"cygprofile_unittest.cc",
27 ] 31 #]
28 32 #
29 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] 33 ##configs -= [ "//build/config/win:default_cygprofile_instrumentation" ]
30 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] 34 ##configs += [ "//build/config/win:no_cygprofile_instrumentation" ]
31 35 #
32 deps = [ 36 #deps = [
33 ":cygprofile", 37 #":cygprofile",
34 "//base", 38 #"//base",
35 "//testing/gtest", 39 #"//testing/gtest",
36 ] 40 #]
37 } 41 #}
OLDNEW
« 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