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

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: Fix linking errors moving kChunkSize outside of exported 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
« no previous file with comments | « components/tracing.gyp ('k') | components/tracing/core/proto_utils.h » ('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 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 source_set("unit_tests") { 79 source_set("unit_tests") {
78 testonly = true 80 testonly = true
79 81
80 sources = [ 82 sources = [
81 "child/child_trace_message_filter_unittest.cc", 83 "child/child_trace_message_filter_unittest.cc",
82 "common/graphics_memory_dump_provider_android_unittest.cc", 84 "common/graphics_memory_dump_provider_android_unittest.cc",
83 "common/process_metrics_memory_dump_provider_unittest.cc", 85 "common/process_metrics_memory_dump_provider_unittest.cc",
84 "core/proto_utils_unittest.cc", 86 "core/proto_utils_unittest.cc",
85 "core/proto_zero_message_unittest.cc", 87 "core/proto_zero_message_unittest.cc",
86 "core/scattered_stream_writer_unittest.cc", 88 "core/scattered_stream_writer_unittest.cc",
89 "core/trace_buffer_writer_unittest.cc",
87 "core/trace_ring_buffer_unittest.cc", 90 "core/trace_ring_buffer_unittest.cc",
88 "test/fake_scattered_buffer.cc", 91 "test/fake_scattered_buffer.cc",
89 "test/proto_zero_generation_unittest.cc", 92 "test/proto_zero_generation_unittest.cc",
90 ] 93 ]
91 94
92 deps = [ 95 deps = [
96 ":golden_protos_for_tests",
93 ":proto_zero_testing_messages", 97 ":proto_zero_testing_messages",
94 ":tracing", 98 ":tracing",
95 "//base/test:test_support", 99 "//base/test:test_support",
96 "//ipc", 100 "//ipc",
97 "//testing/gmock:gmock", 101 "//testing/gmock:gmock",
98 "//testing/gtest", 102 "//testing/gtest",
99 ] 103 ]
100 104
101 if (!is_android) { 105 if (!is_android) {
102 sources += [ "browser/trace_config_file_unittest.cc" ] 106 sources += [ "browser/trace_config_file_unittest.cc" ]
103 deps += [ ":startup_tracing" ] 107 deps += [ ":startup_tracing" ]
104 } 108 }
105 } 109 }
110
111 # Official protobuf used by tests to verify that the Tracing V2 output is
112 # effectively proto-compatible.
113 proto_library("golden_protos_for_tests") {
114 visibility = [ ":unit_tests" ]
115 proto_out_dir = "components/tracing/test/golden_protos"
116 sources = [
117 "proto/events_chunk.proto",
118 ]
119 }
OLDNEW
« no previous file with comments | « components/tracing.gyp ('k') | components/tracing/core/proto_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698