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

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

Issue 2196663002: tracing v2: Introduce TraceBufferWriter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@proto_refactor
Patch Set: Add TRACING_EXPORT also to nested class Created 4 years, 4 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
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 import("//third_party/protobuf/proto_library.gni") 5 import("//third_party/protobuf/proto_library.gni")
6 6
7 component("tracing") { 7 component("tracing") {
8 sources = [ 8 sources = [
9 "child/child_memory_dump_manager_delegate_impl.cc", 9 "child/child_memory_dump_manager_delegate_impl.cc",
10 "child/child_memory_dump_manager_delegate_impl.h", 10 "child/child_memory_dump_manager_delegate_impl.h",
11 "child/child_trace_message_filter.cc", 11 "child/child_trace_message_filter.cc",
12 "child/child_trace_message_filter.h", 12 "child/child_trace_message_filter.h",
13 "common/graphics_memory_dump_provider_android.cc", 13 "common/graphics_memory_dump_provider_android.cc",
14 "common/graphics_memory_dump_provider_android.h", 14 "common/graphics_memory_dump_provider_android.h",
15 "common/process_metrics_memory_dump_provider.cc", 15 "common/process_metrics_memory_dump_provider.cc",
16 "common/process_metrics_memory_dump_provider.h", 16 "common/process_metrics_memory_dump_provider.h",
17 "common/tracing_messages.cc", 17 "common/tracing_messages.cc",
18 "common/tracing_messages.h", 18 "common/tracing_messages.h",
19 "core/proto_utils.h", 19 "core/proto_utils.h",
20 "core/proto_zero_message.cc", 20 "core/proto_zero_message.cc",
21 "core/proto_zero_message.h", 21 "core/proto_zero_message.h",
22 "core/proto_zero_message_handle.cc", 22 "core/proto_zero_message_handle.cc",
23 "core/proto_zero_message_handle.h", 23 "core/proto_zero_message_handle.h",
24 "core/scattered_stream_writer.cc", 24 "core/scattered_stream_writer.cc",
25 "core/scattered_stream_writer.h", 25 "core/scattered_stream_writer.h",
26 "core/trace_buffer_writer.cc",
27 "core/trace_buffer_writer.h",
26 "core/trace_ring_buffer.cc", 28 "core/trace_ring_buffer.cc",
27 "core/trace_ring_buffer.h", 29 "core/trace_ring_buffer.h",
28 "tracing_export.h", 30 "tracing_export.h",
29 ] 31 ]
30 32
31 defines = [ "TRACING_IMPLEMENTATION" ] 33 defines = [ "TRACING_IMPLEMENTATION" ]
32 34
33 deps = [ 35 deps = [
34 "//base", 36 "//base",
35 "//ipc", 37 "//ipc",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 source_set("unit_tests") { 77 source_set("unit_tests") {
76 testonly = true 78 testonly = true
77 79
78 sources = [ 80 sources = [
79 "child/child_trace_message_filter_unittest.cc", 81 "child/child_trace_message_filter_unittest.cc",
80 "common/graphics_memory_dump_provider_android_unittest.cc", 82 "common/graphics_memory_dump_provider_android_unittest.cc",
81 "common/process_metrics_memory_dump_provider_unittest.cc", 83 "common/process_metrics_memory_dump_provider_unittest.cc",
82 "core/proto_utils_unittest.cc", 84 "core/proto_utils_unittest.cc",
83 "core/proto_zero_message_unittest.cc", 85 "core/proto_zero_message_unittest.cc",
84 "core/scattered_stream_writer_unittest.cc", 86 "core/scattered_stream_writer_unittest.cc",
87 "core/trace_buffer_writer_unittest.cc",
85 "core/trace_ring_buffer_unittest.cc", 88 "core/trace_ring_buffer_unittest.cc",
86 "test/fake_scattered_buffer.cc", 89 "test/fake_scattered_buffer.cc",
87 "test/proto_zero_generation_unittest.cc", 90 "test/proto_zero_generation_unittest.cc",
88 ] 91 ]
89 92
90 deps = [ 93 deps = [
94 ":golden_protos_for_tests",
91 ":proto_zero_testing_messages", 95 ":proto_zero_testing_messages",
92 ":tracing", 96 ":tracing",
93 "//base/test:test_support", 97 "//base/test:test_support",
94 "//ipc", 98 "//ipc",
95 "//testing/gmock:gmock", 99 "//testing/gmock:gmock",
96 "//testing/gtest", 100 "//testing/gtest",
97 ] 101 ]
98 102
99 if (!is_android) { 103 if (!is_android) {
100 sources += [ "browser/trace_config_file_unittest.cc" ] 104 sources += [ "browser/trace_config_file_unittest.cc" ]
101 deps += [ ":startup_tracing" ] 105 deps += [ ":startup_tracing" ]
102 } 106 }
103 } 107 }
108
109 # Official protobuf used by tests to verify that the Tracing V2 output is
110 # effectively proto-compatible.
111 proto_library("golden_protos_for_tests") {
112 visibility = [ ":unit_tests" ]
113 proto_out_dir = "components/tracing/test/golden_protos"
114 sources = [
115 "proto/events_chunk.proto",
116 ]
117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698