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

Side by Side Diff: components/tracing/BUILD.gn

Issue 1417003003: [tracing] Dump child processes' memory metrics in browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@web_cache2_base
Patch Set: Remove manager Created 5 years, 1 month 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 component("tracing") { 5 component("tracing") {
6 sources = [ 6 sources = [
7 "child_memory_dump_manager_delegate_impl.cc", 7 "child_memory_dump_manager_delegate_impl.cc",
8 "child_memory_dump_manager_delegate_impl.h", 8 "child_memory_dump_manager_delegate_impl.h",
9 "child_trace_message_filter.cc", 9 "child_trace_message_filter.cc",
10 "child_trace_message_filter.h", 10 "child_trace_message_filter.h",
11 "graphics_memory_dump_provider_android.cc", 11 "graphics_memory_dump_provider_android.cc",
12 "graphics_memory_dump_provider_android.h", 12 "graphics_memory_dump_provider_android.h",
13 "process_metrics_memory_dump_provider.cc",
14 "process_metrics_memory_dump_provider.h",
13 "tracing_export.h", 15 "tracing_export.h",
14 "tracing_messages.cc", 16 "tracing_messages.cc",
15 "tracing_messages.h", 17 "tracing_messages.h",
16 ] 18 ]
17 19
18 defines = [ "TRACING_IMPLEMENTATION" ] 20 defines = [ "TRACING_IMPLEMENTATION" ]
19 21
20 deps = [ 22 deps = [
21 "//base", 23 "//base",
22 "//ipc", 24 "//ipc",
23 ] 25 ]
26
27 if (is_linux || is_android) {
28 sources += [ "process_metrics_memory_dump_provider_posix.cc" ]
29 }
24 } 30 }
25 31
26 component("startup_tracing") { 32 component("startup_tracing") {
27 sources = [ 33 sources = [
28 "trace_config_file.cc", 34 "trace_config_file.cc",
29 "trace_config_file.h", 35 "trace_config_file.h",
30 "tracing_export.h", 36 "tracing_export.h",
31 "tracing_switches.cc", 37 "tracing_switches.cc",
32 "tracing_switches.h", 38 "tracing_switches.h",
33 ] 39 ]
34 40
35 defines = [ "TRACING_IMPLEMENTATION" ] 41 defines = [ "TRACING_IMPLEMENTATION" ]
36 42
37 deps = [ 43 deps = [
38 "//base", 44 "//base",
39 ] 45 ]
40 } 46 }
41 47
42 source_set("unit_tests") { 48 source_set("unit_tests") {
43 testonly = true 49 testonly = true
44 50
45 sources = [ 51 sources = [
46 "graphics_memory_dump_provider_android_unittest.cc", 52 "graphics_memory_dump_provider_android_unittest.cc",
53 "process_metrics_memory_dump_provider_unittest.cc",
47 ] 54 ]
48 55
49 deps = [ 56 deps = [
50 ":tracing", 57 ":tracing",
51 "//base/test:test_support", 58 "//base/test:test_support",
52 "//testing/gtest", 59 "//testing/gtest",
53 ] 60 ]
54 61
55 if (!is_android) { 62 if (!is_android) {
56 sources += [ "trace_config_file_unittest.cc" ] 63 sources += [ "trace_config_file_unittest.cc" ]
57 deps += [ ":startup_tracing" ] 64 deps += [ ":startup_tracing" ]
58 } 65 }
59 } 66 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698