Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 1 | # Copyright (C) 2022 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. |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 14 | # |
| 15 | # This file is automatically generated by tools/gen_bazel. Do not edit. |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 16 | |
| 17 | load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG") |
| 18 | load( |
| 19 | "@perfetto//bazel:rules.bzl", |
| 20 | "perfetto_py_binary", |
| 21 | "perfetto_py_library", |
| 22 | ) |
| 23 | |
Lalit Maganti | c901a99 | 2022-01-11 18:55:07 +0000 | [diff] [blame] | 24 | licenses(["notice"]) |
| 25 | |
Lalit Maganti | 400b7fa | 2023-05-03 16:26:56 +0100 | [diff] [blame] | 26 | package(default_visibility = [PERFETTO_CONFIG.root + ":__subpackages__"]) |
Lalit Maganti | ad4ad2e | 2022-01-11 19:23:05 +0000 | [diff] [blame] | 27 | |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 28 | # GN target: //python:batch_trace_processor |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 29 | perfetto_py_library( |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 30 | name = "batch_trace_processor", |
| 31 | srcs = [ |
| 32 | "perfetto/batch_trace_processor/__init__.py", |
| 33 | "perfetto/batch_trace_processor/api.py", |
| 34 | "perfetto/batch_trace_processor/platform.py", |
Lalit Maganti | 917b844 | 2022-01-13 19:19:41 +0000 | [diff] [blame] | 35 | ], |
Lalit Maganti | f18b616 | 2022-11-23 18:56:35 +0000 | [diff] [blame] | 36 | visibility = [ |
| 37 | "//visibility:public", |
| 38 | ], |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 39 | deps = [ |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 40 | ":trace_processor_py", |
| 41 | ] + PERFETTO_CONFIG.deps.pandas_py + |
| 42 | PERFETTO_CONFIG.deps.tp_vendor_py, |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 43 | ) |
| 44 | |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 45 | # GN target: //python:experimental_slice_breakdown_bin |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 46 | perfetto_py_binary( |
| 47 | name = "experimental_slice_breakdown_bin", |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 48 | srcs = [ |
| 49 | "tools/slice_breakdown.py", |
| 50 | ], |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 51 | deps = [ |
| 52 | ":experimental_slice_breakdown_lib", |
| 53 | ":trace_processor_py", |
| 54 | ] + PERFETTO_CONFIG.deps.pandas_py, |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 55 | main = "tools/slice_breakdown.py", |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 56 | python_version = "PY3", |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 57 | ) |
| 58 | |
Lalit Maganti | 220f7f6 | 2022-11-24 15:30:30 +0000 | [diff] [blame] | 59 | # GN target: //python:trace_processor_table_generator |
| 60 | perfetto_py_library( |
| 61 | name = "trace_processor_table_generator", |
| 62 | srcs = [ |
| 63 | "generators/trace_processor_table/public.py", |
Lalit Maganti | 16117cc | 2022-12-21 15:33:21 +0000 | [diff] [blame] | 64 | "generators/trace_processor_table/serialize.py", |
Lalit Maganti | 167b93f | 2023-01-10 13:56:13 +0000 | [diff] [blame] | 65 | "generators/trace_processor_table/util.py", |
Lalit Maganti | 220f7f6 | 2022-11-24 15:30:30 +0000 | [diff] [blame] | 66 | ], |
| 67 | ) |
| 68 | |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 69 | # GN target: //python:trace_processor_py_example |
| 70 | perfetto_py_binary( |
| 71 | name = "trace_processor_py_example", |
| 72 | srcs = [ |
| 73 | "example.py", |
| 74 | ], |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 75 | deps = [ |
| 76 | ":trace_processor_py", |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 77 | ] + PERFETTO_CONFIG.deps.pandas_py, |
| 78 | main = "example.py", |
| 79 | python_version = "PY3", |
| 80 | ) |
| 81 | |
| 82 | # GN target: //python:experimental_slice_breakdown_lib |
| 83 | perfetto_py_library( |
| 84 | name = "experimental_slice_breakdown_lib", |
| 85 | srcs = [ |
| 86 | "perfetto/experimental/slice_breakdown/__init__.py", |
| 87 | "perfetto/experimental/slice_breakdown/breakdown.py", |
| 88 | ], |
| 89 | deps = [ |
| 90 | ":trace_processor_py", |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 91 | ], |
| 92 | ) |
| 93 | |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 94 | # GN target: //python:trace_processor_py |
| 95 | perfetto_py_library( |
| 96 | name = "trace_processor_py", |
| 97 | srcs = [ |
| 98 | "perfetto/trace_processor/__init__.py", |
| 99 | "perfetto/trace_processor/api.py", |
| 100 | "perfetto/trace_processor/http.py", |
| 101 | "perfetto/trace_processor/platform.py", |
| 102 | "perfetto/trace_processor/protos.py", |
| 103 | "perfetto/trace_processor/shell.py", |
| 104 | ], |
Lalit Maganti | f18b616 | 2022-11-23 18:56:35 +0000 | [diff] [blame] | 105 | visibility = [ |
| 106 | "//visibility:public", |
| 107 | ], |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 108 | data = [ |
| 109 | PERFETTO_CONFIG.root + ":trace_processor_shell", |
| 110 | "perfetto/trace_processor/metrics.descriptor", |
| 111 | "perfetto/trace_processor/trace_processor.descriptor", |
| 112 | ], |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 113 | deps = [ |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 114 | ":trace_uri_resolver", |
| 115 | ] + PERFETTO_CONFIG.deps.pandas_py + |
| 116 | PERFETTO_CONFIG.deps.protobuf_py + |
| 117 | PERFETTO_CONFIG.deps.tp_vendor_py, |
Lalit Maganti | 4c76b4d | 2022-01-11 15:37:41 +0000 | [diff] [blame] | 118 | ) |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 119 | |
| 120 | # GN target: //python:trace_uri_resolver |
| 121 | perfetto_py_library( |
| 122 | name = "trace_uri_resolver", |
| 123 | srcs = [ |
| 124 | "perfetto/trace_uri_resolver/__init__.py", |
| 125 | "perfetto/trace_uri_resolver/path.py", |
| 126 | "perfetto/trace_uri_resolver/registry.py", |
| 127 | "perfetto/trace_uri_resolver/resolver.py", |
| 128 | "perfetto/trace_uri_resolver/util.py", |
| 129 | ], |
| 130 | ) |
| 131 | |