blob: bd43c2d312d57036116e6bca782d31c7c888ef69 [file] [log] [blame]
Primiano Tucciae2879e2017-09-27 11:02:09 +09001# Copyright (C) 2017 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080015import("gn/perfetto.gni")
Eric Secklera6ba1792019-01-02 12:51:00 +000016import("gn/test.gni")
Primiano Tucci4c5efa42018-10-23 13:15:13 +010017
18if (perfetto_build_standalone || perfetto_build_with_android) {
Florian Mayerf98c9d62018-09-03 16:38:16 +010019 import("//gn/standalone/android.gni")
20} else {
21 import("//build/config/android/config.gni")
22}
Oystein Eftevaagdd727e42017-12-05 08:49:55 -080023
Primiano Tuccia1959712018-05-17 11:01:56 +010024# For use_libfuzzer.
Primiano Tucci4c5efa42018-10-23 13:15:13 +010025if (perfetto_build_standalone || perfetto_build_with_android) {
Primiano Tuccia1959712018-05-17 11:01:56 +010026 import("//gn/standalone/sanitizers/vars.gni")
27} else {
28 import("//build/config/sanitizers/sanitizers.gni")
29}
30
Primiano Tuccif3837d52018-01-10 21:12:41 +000031declare_args() {
32 # Only for local development. When true the binaries (perfetto, traced, ...)
33 # are monolithic and don't use a common shared library. This is mainly to
34 # avoid LD_LIBRARY_PATH dances when testing locally.
35 monolithic_binaries = false
Florian Mayerb64d6b12018-08-30 10:46:30 -070036
37 # libunwindstack requires API level 26 or newer.
Florian Mayera2fae262018-08-31 12:10:01 -070038 should_build_heapprofd =
Primiano Tucci4c5efa42018-10-23 13:15:13 +010039 (perfetto_build_standalone || perfetto_build_with_android) && is_clang &&
40 (is_linux || is_android) &&
41 (!is_android || android_api_level >= 26 || perfetto_build_with_android)
Primiano Tuccif3837d52018-01-10 21:12:41 +000042}
Primiano Tucci4c5efa42018-10-23 13:15:13 +010043assert(!monolithic_binaries || !perfetto_build_with_android)
Primiano Tuccif3837d52018-01-10 21:12:41 +000044
Primiano Tucciae2879e2017-09-27 11:02:09 +090045group("all") {
46 testonly = true # allow to build also test targets
47 deps = [
Eric Secklera6ba1792019-01-02 12:51:00 +000048 ":perfetto_unittests",
Primiano Tucci764c5042019-06-22 18:28:45 +010049 "src/protozero/protoc_plugin:protozero_plugin($host_toolchain)",
Primiano Tucciae2879e2017-09-27 11:02:09 +090050 ]
Lalit Magantiedace412019-06-18 13:28:28 +010051 if (perfetto_build_standalone || perfetto_build_with_android ||
52 build_with_chromium) {
53 deps += [ ":trace_processor_shell" ]
Mikhail Khokhlov8643d1c2019-06-04 12:02:47 +010054 }
Primiano Tucci4c5efa42018-10-23 13:15:13 +010055 if (perfetto_build_standalone || perfetto_build_with_android) {
Primiano Tuccib03ba362017-12-06 09:47:41 +000056 deps += [
Primiano Tucci808d6df2018-03-31 13:24:18 +010057 ":perfetto",
Primiano Tucci808d6df2018-03-31 13:24:18 +010058 ":perfetto_integrationtests",
59 ":traced",
60 ":traced_probes",
Hector Dearman696ff772019-04-23 18:38:53 +010061 ":trigger_perfetto",
Primiano Tuccic5010802018-01-19 17:13:21 +000062 "protos/perfetto/config:merged_config", # For syntax-checking the proto.
Hector Dearmane92c6742018-11-22 21:42:39 +000063 "protos/perfetto/trace:merged_trace", # For syntax-checking the proto.
Oystein Eftevaag067fd5b2018-03-27 12:39:30 -070064 "src/ipc/protoc_plugin:ipc_plugin($host_toolchain)",
Primiano Tucci2c5488f2019-06-01 03:27:28 +010065 "src/tracing:client_api",
Oystein Eftevaag51e06e52018-01-18 11:28:49 -080066 "tools:protoc_helper",
Primiano Tuccib03ba362017-12-06 09:47:41 +000067 ]
Primiano Tucci4c5efa42018-10-23 13:15:13 +010068 if (perfetto_build_standalone) {
Primiano Tucci5968caf2018-08-06 10:31:46 +010069 deps += [
Primiano Tucci4c5efa42018-10-23 13:15:13 +010070 ":perfetto_benchmarks",
Florian Mayerc50bcc92019-02-07 11:43:30 +000071 "src/profiling/memory:ring_buffer",
Primiano Tucci3cd31322018-10-11 20:06:56 +010072 "src/tracing:consumer_api_test",
Primiano Tucci4c5efa42018-10-23 13:15:13 +010073 "test/configs",
74 "tools/ftrace_proto_gen:ftrace_proto_gen",
75 "tools/proto_to_cpp",
Primiano Tucci5968caf2018-08-06 10:31:46 +010076 "tools/trace_to_text",
Hector Dearman499cd602018-11-20 13:02:31 +000077 "tools/trace_to_text:trace_to_text_lite_host($host_toolchain)",
Lalit Magantif9799c62019-05-28 20:01:08 +010078
79 # The diff testing framework depends on these descriptors.
80 "protos/perfetto/metrics:descriptor",
81 "protos/perfetto/trace:descriptor",
Primiano Tucci5968caf2018-08-06 10:31:46 +010082 ]
Primiano Tucci4c5efa42018-10-23 13:15:13 +010083 if (is_linux || is_android) {
Ryan Savitskidb7f1ae2019-04-10 17:28:28 +010084 deps += [ "tools/busy_threads" ]
Ryan Savitski488e1222019-06-26 21:28:42 +010085 deps += [ "tools/cpu_utilization" ]
Lalit Maganti787418f2019-04-11 14:14:23 +010086 deps += [ "tools/dump_ftrace_stats" ]
Ryan Savitski488e1222019-06-26 21:28:42 +010087 deps += [ "tools/skippy" ]
Primiano Tucci4c5efa42018-10-23 13:15:13 +010088 }
Florian Mayer2e480712018-12-07 16:25:41 +000089 if (is_fuzzer) {
Primiano Tucci4c5efa42018-10-23 13:15:13 +010090 deps += [ ":fuzzers" ]
91 }
Primiano Tuccia1959712018-05-17 11:01:56 +010092 }
Primiano Tuccib03ba362017-12-06 09:47:41 +000093 }
Primiano Tucciae2879e2017-09-27 11:02:09 +090094}
95
Primiano Tucci3faad742018-05-16 19:30:48 +010096# TODO(primiano): temporary workaround to:
97# 1) Prevent that the UI gets build automatically when doing ninja -C out/xx .
98# 2) Avoid breaking the chrome build, that right now depends on "all".
99group("default") {
100 testonly = true # allow to build also test targets
101 deps = [
102 ":all",
103 ]
104}
105
Mikhail Khokhlov8643d1c2019-06-04 12:02:47 +0100106# The trace processor shell executable. An interactive shell that allows to
107# make queries on the trace using the terminal.
Lalit Magantiedace412019-06-18 13:28:28 +0100108if (perfetto_build_standalone || perfetto_build_with_android ||
109 build_with_chromium) {
110 executable("trace_processor_shell") {
Primiano Tucci5968caf2018-08-06 10:31:46 +0100111 deps = [
Lalit Magantiedace412019-06-18 13:28:28 +0100112 "gn:default_deps",
Primiano Tucci5968caf2018-08-06 10:31:46 +0100113 "src/trace_processor:trace_processor_shell",
114 ]
Lalit Magantica4d5142019-05-28 13:25:47 +0100115 testonly = true # We need this for proto full.
Primiano Tucci5968caf2018-08-06 10:31:46 +0100116 }
Primiano Tucci3faad742018-05-16 19:30:48 +0100117}
118
Mikhail Khokhlov8643d1c2019-06-04 12:02:47 +0100119if (perfetto_build_standalone) {
120 group("ui") {
121 deps = [
122 "ui",
123 ]
124 }
125}
126
Eric Secklera6ba1792019-01-02 12:51:00 +0000127test("perfetto_unittests") {
Primiano Tucciae2879e2017-09-27 11:02:09 +0900128 deps = [
Primiano Tuccib03ba362017-12-06 09:47:41 +0000129 "gn:default_deps",
Florian Mayerd8bd81b2018-01-25 12:49:15 +0000130 "gn:gtest_main",
Hector Dearman6cfec8a2018-03-14 16:54:09 +0000131 "src/base:unittests",
Bruce Dawsonc3e67632018-05-14 14:07:51 +0100132 "src/protozero:unittests",
Oystein Eftevaage5e84fb2018-06-01 17:34:56 -0700133 "src/tracing:unittests",
Primiano Tucciae2879e2017-09-27 11:02:09 +0900134 ]
Primiano Tucci1640ffa2018-05-14 18:25:33 +0100135
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100136 if (perfetto_build_standalone || perfetto_build_with_android) {
Oystein Eftevaag067fd5b2018-03-27 12:39:30 -0700137 deps += [
138 "src/ipc:unittests",
139 "src/perfetto_cmd:unittests",
Florian Mayerc50bcc92019-02-07 11:43:30 +0000140 "src/profiling/memory:ring_buffer_unittests",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100141 "src/traced/probes:unittests",
Oystein Eftevaag067fd5b2018-03-27 12:39:30 -0700142 "src/traced/probes/filesystem:unittests",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200143 "src/traced/probes/ftrace:unittests",
Eric Seckler21077742019-03-18 09:07:54 +0000144 "src/traced/service:unittests",
Primiano Tucci808d6df2018-03-31 13:24:18 +0100145 "tools/ftrace_proto_gen:unittests",
Oystein Eftevaag067fd5b2018-03-27 12:39:30 -0700146 "tools/sanitizers_unittests",
147 ]
Primiano Tucci931284e2017-12-11 09:23:53 +0000148 }
Florian Mayerb64d6b12018-08-30 10:46:30 -0700149 if (should_build_heapprofd) {
150 # Restrict to clang, as libunwindstack and its dependencies is never
151 # built using GCC in the Android tree.
152 deps += [ "src/profiling/memory:unittests" ]
153 }
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100154 if (perfetto_build_standalone && !is_android) {
Lalit Maganti5f3a0182019-05-07 16:40:36 +0100155 deps += [
156 "src/trace_processor:unittests",
157 "src/trace_processor/metrics:unittests",
158 ]
Lalit Maganticaed37e2018-06-01 03:03:08 +0100159 }
Primiano Tuccib03ba362017-12-06 09:47:41 +0000160}
Oystein Eftevaagdd727e42017-12-05 08:49:55 -0800161
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100162if (perfetto_build_standalone || perfetto_build_with_android) {
Eric Secklera6ba1792019-01-02 12:51:00 +0000163 test("perfetto_integrationtests") {
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000164 deps = [
165 "gn:default_deps",
Florian Mayerd8bd81b2018-01-25 12:49:15 +0000166 "gn:gtest_main",
Primiano Tuccide82dae2018-06-04 16:17:49 +0200167 "src/traced/probes/ftrace:integrationtests",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100168 "src/tracing:client_api_integrationtests",
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000169 "test:end_to_end_integrationtests",
170 ]
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100171 if (perfetto_build_standalone && !is_android) {
Hector Dearman7f71d0e2018-08-09 11:26:10 +0100172 deps += [ "src/trace_processor:integrationtests" ]
173 }
Florian Mayer42802492018-12-13 11:00:16 +0000174
175 # TODO(fmayer): Fix in process daemons.
Florian Mayer087d37f2019-05-23 12:59:08 +0100176 if (should_build_heapprofd) {
Florian Mayer42802492018-12-13 11:00:16 +0000177 deps += [ "src/profiling/memory:end_to_end_tests" ]
178 }
Lalit Maganti79f2d7b2018-01-23 18:27:33 +0000179 }
180
Primiano Tuccif3837d52018-01-10 21:12:41 +0000181 if (monolithic_binaries) {
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100182 libperfetto_target_type = "source_set"
Primiano Tuccif3837d52018-01-10 21:12:41 +0000183 } else {
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100184 libperfetto_target_type = "shared_library"
Primiano Tuccif3837d52018-01-10 21:12:41 +0000185 }
186
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100187 target(libperfetto_target_type, "libperfetto") {
Primiano Tucci4e49c022017-12-21 18:22:44 +0100188 deps = [
189 "gn:default_deps",
Primiano Tucci6067e732018-01-08 16:19:40 +0000190 "src/traced/probes",
191 "src/traced/service",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100192 "src/tracing:consumer_api_deprecated",
Primiano Tucci6067e732018-01-08 16:19:40 +0000193 ]
194 }
195
Primiano Tucci3b729102018-01-08 18:16:36 +0000196 # The unprivileged trace daemon that listens for Producer and Consumer
197 # connections, handles the coordination of the tracing sessions and owns the
198 # log buffers.
Primiano Tucci6067e732018-01-08 16:19:40 +0000199 executable("traced") {
200 deps = [
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100201 ":libperfetto",
Primiano Tucci6067e732018-01-08 16:19:40 +0000202 "gn:default_deps",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100203 "include/perfetto/ext/traced",
Primiano Tucci6067e732018-01-08 16:19:40 +0000204 ]
205 sources = [
206 "src/traced/service/main.cc",
207 ]
208 }
209
Primiano Tucci3b729102018-01-08 18:16:36 +0000210 # The unprivileged daemon that is allowed to access tracefs (for ftrace).
211 # Registers as a Producer on the traced daemon.
Primiano Tucci6067e732018-01-08 16:19:40 +0000212 executable("traced_probes") {
213 deps = [
Primiano Tuccibdb2a592018-10-11 15:59:29 +0100214 ":libperfetto",
Primiano Tucci6067e732018-01-08 16:19:40 +0000215 "gn:default_deps",
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100216 "include/perfetto/ext/traced",
Primiano Tucci6067e732018-01-08 16:19:40 +0000217 ]
218 sources = [
219 "src/traced/probes/main.cc",
Primiano Tucci4e49c022017-12-21 18:22:44 +0100220 ]
221 }
Primiano Tucci3b729102018-01-08 18:16:36 +0000222
223 # The command line client for Perfetto. Allows to configure / start / stop
224 # tracing, acting as a Consumer.
225 executable("perfetto") {
226 deps = [
Primiano Tucci3b729102018-01-08 18:16:36 +0000227 "gn:default_deps",
Hector Dearmanc443a362018-02-28 16:03:56 +0000228 "src/perfetto_cmd",
Primiano Tucci3b729102018-01-08 18:16:36 +0000229 ]
230 sources = [
Hector Dearmanc443a362018-02-28 16:03:56 +0000231 "src/perfetto_cmd/main.cc",
Primiano Tucci3b729102018-01-08 18:16:36 +0000232 ]
233 }
Primiano Tucci6aa75572018-03-21 05:33:14 -0700234
Hector Dearman696ff772019-04-23 18:38:53 +0100235 # Tool to finalize long running traces.
236 # This connects to traced as a producer and sends the triggers passed on the
237 # commandline. This is a subset of what the perfetto binary can do but we
238 # need a separate binary for programs that cannot (for good reason) use the
239 # additional functionality (for example starting traces via consumer socket)
240 # due to selinux rules.
241 executable("trigger_perfetto") {
242 deps = [
243 "gn:default_deps",
244 "src/perfetto_cmd:trigger_perfetto_cmd",
245 ]
246 sources = [
247 "src/perfetto_cmd/trigger_perfetto_main.cc",
248 ]
249 }
250
Primiano Tucci658e2d62019-06-14 10:03:32 +0100251 # Client library target for the Android tree.
252 # Still in experimental stage and not API stable yet.
253 # See "libperfetto_client_example" (in Android.bp.extras) for an example
254 # on how to use the Perfetto Client API from the android tree.
255 static_library("libperfetto_client_experimental") {
256 complete_static_lib = true
257 deps = [
258 "gn:default_deps",
259 "src/tracing",
260 "src/tracing:client_api",
261 "src/tracing:platform_posix",
262 ]
263 sources = [
264 "include/perfetto/tracing.h",
265 ]
266 }
267
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100268 if (perfetto_build_with_android) {
Primiano Tucci21c19d82018-03-29 12:35:08 +0100269 executable("trace_to_text") {
270 testonly = true
271 deps = [
272 "gn:default_deps",
Primiano Tucci20dc8f72018-10-23 12:28:29 +0100273 "tools/trace_to_text:full",
Primiano Tucci21c19d82018-03-29 12:35:08 +0100274 ]
275 }
Primiano Tucci21c19d82018-03-29 12:35:08 +0100276
Primiano Tucci808d6df2018-03-31 13:24:18 +0100277 # This target exports perfetto trace protos in the Android build system,
278 # allowing both host and device targets to implement custom parsers based on
279 # our protos.
280 static_library("perfetto_trace_protos") {
281 deps = [
282 "protos/perfetto/trace:lite",
283 ]
284 }
Primiano Tucci676f0cc2018-12-03 20:03:26 +0100285
286 shared_library("libperfetto_android_internal") {
287 deps = [
288 "gn:default_deps",
289 "src/android_internal",
290 ]
291 }
292 } # if (perfetto_build_with_android)
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100293} # if (perfetto_build_standalone || perfetto_build_with_android)
Oystein Eftevaaga812a942018-03-23 11:52:32 -0700294
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100295if (perfetto_build_with_embedder) {
296 if (build_with_chromium) {
297 libperfetto_target_type = "component"
298 } else {
299 libperfetto_target_type = "source_set"
300 }
301 target(libperfetto_target_type, "libperfetto") {
Primiano Tucci20b760c2018-01-19 12:36:12 +0000302 public_configs = [ "gn:public_config" ]
Oystein Eftevaag5e8a4eb2018-01-09 11:41:58 -0800303 deps = [
304 "src/tracing",
305 ]
Oystein Eftevaaga812a942018-03-23 11:52:32 -0700306 configs -= [ "//build/config/compiler:chromium_code" ]
307 configs += [ "//build/config/compiler:no_chromium_code" ]
308 public_deps = [
Primiano Tucci2c5488f2019-06-01 03:27:28 +0100309 "include/perfetto/ext/tracing/core",
Oystein Eftevaag6fcedac2018-07-02 12:02:55 -0700310 "protos/perfetto/trace:zero",
311 "protos/perfetto/trace/chrome:zero",
Eric Secklerd3139b42019-02-26 13:43:59 +0000312 "protos/perfetto/trace/interned_data:zero",
313 "protos/perfetto/trace/track_event:zero",
Oystein Eftevaaga812a942018-03-23 11:52:32 -0700314 ]
Oystein Eftevaag5e8a4eb2018-01-09 11:41:58 -0800315 }
Oystein Eftevaaga812a942018-03-23 11:52:32 -0700316}
Primiano Tuccia1959712018-05-17 11:01:56 +0100317
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100318if (perfetto_build_standalone) {
319 executable("perfetto_benchmarks") {
320 testonly = true
321 deps = [
322 "gn:default_deps",
323 "src/traced/probes/ftrace:benchmarks",
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100324 "test:benchmark_main",
325 "test:end_to_end_benchmarks",
326 ]
327 }
328
Primiano Tucci59d6ace2018-09-26 22:24:20 +0100329 group("fuzzers") {
330 testonly = true
331 deps = [
332 "src/ipc:buffered_frame_deserializer_fuzzer",
Florian Mayer4a1ee942019-02-07 15:51:16 +0000333 "src/profiling/memory:shared_ring_buffer_fuzzer",
Florian Mayer00389182019-04-08 16:43:21 +0100334 "src/profiling/memory:shared_ring_buffer_write_fuzzer",
Florian Mayerc365e362018-10-24 13:21:17 +0100335 "src/profiling/memory:unwinding_fuzzer",
Primiano Tuccic1678872019-03-20 11:30:54 +0000336 "src/protozero:protozero_decoder_fuzzer",
Hector Dearman59bc02d2019-02-21 17:28:11 +0000337 "src/trace_processor:trace_processor_fuzzer",
Primiano Tucci59d6ace2018-09-26 22:24:20 +0100338 "src/traced/probes/ftrace:cpu_reader_fuzzer",
339 "test:end_to_end_shared_memory_fuzzer",
340 ]
341 }
Primiano Tuccia1959712018-05-17 11:01:56 +0100342}
Florian Mayerb6a921f2018-10-18 18:55:23 +0100343
Ryan Savitskie65beca2019-01-29 18:29:13 +0000344# WARNING: this builds correctly only when using the generated Android.bp.
345#
346# This library gets loaded into (and executes in) arbitrary android processes.
347# Logging must be non-allocating. This is achieved by defining
348# PERFETTO_ANDROID_ASYNC_SAFE_LOG, which needs to be set for all perfetto code
349# being compiled for this library. When generating Android.bp, the |cflags|
350# entry on this target is sufficient (as all sources are flattened into a
351# single bp target). However this is not correctly reflected in the gn
352# structure (which is a tree of targets) as the dependencies would not pick
353# up the flag (and thus use the wrong logging macro).
354#
355# This is deemed acceptable as, at the time of writing, there is no interest in
356# building this library standalone.
Primiano Tucci4c5efa42018-10-23 13:15:13 +0100357if (perfetto_build_with_android) {
Florian Mayerb6a921f2018-10-18 18:55:23 +0100358 # TODO(fmayer): Investigate shared library for common pieces.
359 shared_library("heapprofd_client") {
Ryan Savitskia3da9be2019-01-30 17:45:53 +0000360 configs -= [ "//gn/standalone:android_liblog" ]
Ryan Savitskie65beca2019-01-29 18:29:13 +0000361 cflags = [ "-DPERFETTO_ANDROID_ASYNC_SAFE_LOG" ]
Florian Mayerb6a921f2018-10-18 18:55:23 +0100362 deps = [
363 "src/profiling/memory:malloc_hooks",
364 ]
365 }
Florian Mayer8e7eac42018-11-05 16:04:11 +0000366}
Florian Mayerb6a921f2018-10-18 18:55:23 +0100367
Florian Mayer8e7eac42018-11-05 16:04:11 +0000368if (should_build_heapprofd) {
Florian Mayerb6a921f2018-10-18 18:55:23 +0100369 executable("heapprofd") {
370 deps = [
371 "gn:default_deps",
Florian Mayer4afdd642018-11-13 11:11:04 +0000372 "protos/perfetto/trace:zero",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100373 "src/base",
374 "src/base:unix_socket",
375 "src/profiling/memory:daemon",
376 "src/profiling/memory:wire_protocol",
Florian Mayer8e7eac42018-11-05 16:04:11 +0000377 "src/tracing:ipc",
Florian Mayerb6a921f2018-10-18 18:55:23 +0100378 ]
379 sources = [
380 "src/profiling/memory/main.cc",
381 ]
382 }
383}
Florian Mayer67be9652019-05-31 16:17:11 +0100384
Eric Seckler4d7ccd92019-06-04 15:50:16 +0100385if (perfetto_build_standalone) {
386 executable("idle_alloc") {
387 sources = [
388 "tools/idle_alloc.cc",
389 ]
390 }
Florian Mayer67be9652019-05-31 16:17:11 +0100391}