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

Side by Side Diff: chrome/chrome_watcher/BUILD.gn

Issue 2086403002: Remove the Kasko based out of process browser hang instrumentation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 years, 5 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 | « chrome/chrome_browser.gypi ('k') | chrome/chrome_watcher/chrome_watcher.gypi » ('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 import("//chrome/version.gni") 5 import("//chrome/version.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 import("//third_party/kasko/kasko.gni")
8 7
9 source_set("client") { 8 source_set("client") {
10 sources = [ 9 sources = [
11 "chrome_watcher_main_api.cc", 10 "chrome_watcher_main_api.cc",
12 "chrome_watcher_main_api.h", 11 "chrome_watcher_main_api.h",
13 ] 12 ]
14 deps = [ 13 deps = [
15 "//base", 14 "//base",
16 ] 15 ]
17 } 16 }
18 17
19 if (enable_kasko) { 18 source_set("hang_util") {
20 source_set("kasko_util") { 19 sources = [
21 sources = [ 20 "system_load_estimator.cc",
22 "kasko_util.cc", 21 "system_load_estimator.h",
23 "kasko_util.h", 22 ]
24 "system_load_estimator.cc", 23 deps = [
25 "system_load_estimator.h", 24 "//base",
26 ] 25 "//components/memory_pressure",
27 deps = [ 26 ]
28 "//base", 27 libs = [ "pdh.lib" ] # Used by system_load_estimator.h.
29 "//components/crash/content/app", 28 ldflags = [ "/DELAYLOAD:pdh.dll" ] # Only used on report capture.
30 "//components/memory_pressure", 29 }
31 "//third_party/kasko",
32 ]
33 libs = [ "pdh.lib" ] # Used by system_load_estimator.h.
34 ldflags = [ "/DELAYLOAD:pdh.dll" ] # Only used on report capture.
35 }
36 30
37 test("system_load_estimator_unittests") { 31 test("system_load_estimator_unittests") {
38 sources = [ 32 sources = [
39 "system_load_estimator_unittest.cc", 33 "system_load_estimator_unittest.cc",
40 ] 34 ]
41 deps = [ 35 deps = [
42 ":client", 36 ":client",
43 ":kasko_util", 37 ":hang_util",
44 "//base/test:run_all_unittests", 38 "//base/test:run_all_unittests",
45 "//base/test:test_support", 39 "//base/test:test_support",
46 "//testing/gtest", 40 "//testing/gtest",
47 ] 41 ]
48 } 42 }
49 } else { 43
50 group("kasko_util") { 44 group("kasko_util") {
51 public_deps = [ 45 public_deps = [
52 "//third_party/kasko:kasko_features", 46 "//third_party/kasko:kasko_features",
53 ] 47 ]
54 }
55 } 48 }
56 49
57 process_version("chrome_watcher_resources") { 50 process_version("chrome_watcher_resources") {
58 template_file = chrome_version_rc_template 51 template_file = chrome_version_rc_template
59 sources = [ 52 sources = [
60 "chrome_watcher.ver", 53 "chrome_watcher.ver",
61 ] 54 ]
62 output = "$target_gen_dir/chrome_watcher_version.rc" 55 output = "$target_gen_dir/chrome_watcher_version.rc"
63 } 56 }
64 57
(...skipping 12 matching lines...) Expand all
77 "//base:base_static", 70 "//base:base_static",
78 "//build/config/sanitizers:deps", 71 "//build/config/sanitizers:deps",
79 "//chrome/common:metrics_constants_util_win", 72 "//chrome/common:metrics_constants_util_win",
80 "//chrome/installer/util:with_no_strings", 73 "//chrome/installer/util:with_no_strings",
81 "//components/browser_watcher", 74 "//components/browser_watcher",
82 ] 75 ]
83 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ] 76 ldflags = [ "/DEF:" + rebase_path("chrome_watcher.def", root_build_dir) ]
84 configs -= [ "//build/config/win:console" ] 77 configs -= [ "//build/config/win:console" ]
85 configs += [ "//build/config/win:windowed" ] 78 configs += [ "//build/config/win:windowed" ]
86 } 79 }
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/chrome_watcher/chrome_watcher.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698