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

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: dNits. 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_manager.cc",
14 "process_metrics_memory_dump_manager.h",
15 "process_metrics_memory_dump_provider.cc",
16 "process_metrics_memory_dump_provider.h",
13 "tracing_export.h", 17 "tracing_export.h",
14 "tracing_messages.cc", 18 "tracing_messages.cc",
15 "tracing_messages.h", 19 "tracing_messages.h",
16 ] 20 ]
17 21
18 defines = [ "TRACING_IMPLEMENTATION" ] 22 defines = [ "TRACING_IMPLEMENTATION" ]
19 23
20 deps = [ 24 deps = [
21 "//base", 25 "//base",
22 "//ipc", 26 "//ipc",
23 ] 27 ]
28
29 if (is_linux || is_android) {
30 sources += [ "process_metrics_memory_dump_provider_posix.cc" ]
31 }
24 } 32 }
25 33
26 component("startup_tracing") { 34 component("startup_tracing") {
27 sources = [ 35 sources = [
28 "trace_config_file.cc", 36 "trace_config_file.cc",
29 "trace_config_file.h", 37 "trace_config_file.h",
30 "tracing_export.h", 38 "tracing_export.h",
31 "tracing_switches.cc", 39 "tracing_switches.cc",
32 "tracing_switches.h", 40 "tracing_switches.h",
33 ] 41 ]
34 42
35 defines = [ "TRACING_IMPLEMENTATION" ] 43 defines = [ "TRACING_IMPLEMENTATION" ]
36 44
37 deps = [ 45 deps = [
38 "//base", 46 "//base",
39 ] 47 ]
40 } 48 }
41 49
42 source_set("unit_tests") { 50 source_set("unit_tests") {
43 testonly = true 51 testonly = true
44 52
45 sources = [ 53 sources = [
46 "graphics_memory_dump_provider_android_unittest.cc", 54 "graphics_memory_dump_provider_android_unittest.cc",
55 "process_metrics_memory_dump_provider_unittest.cc",
47 ] 56 ]
48 57
49 deps = [ 58 deps = [
50 ":tracing", 59 ":tracing",
51 "//base/test:test_support", 60 "//base/test:test_support",
52 "//testing/gtest", 61 "//testing/gtest",
53 ] 62 ]
54 63
55 if (!is_android) { 64 if (!is_android) {
56 sources += [ "trace_config_file_unittest.cc" ] 65 sources += [ "trace_config_file_unittest.cc" ]
57 deps += [ ":startup_tracing" ] 66 deps += [ ":startup_tracing" ]
58 } 67 }
59 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698