• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
14#
15# This file is automatically generated by tools/gen_bazel. Do not edit.
16
17load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG")
18load(
19    "@perfetto//bazel:rules.bzl",
20    "perfetto_py_binary",
21    "perfetto_py_library",
22)
23
24licenses(["notice"])
25
26package(default_visibility = [PERFETTO_CONFIG.root + ":__subpackages__"])
27
28# GN target: //python:batch_trace_processor
29perfetto_py_library(
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",
35    ],
36    visibility = [
37        "//visibility:public",
38    ],
39    deps = [
40               ":trace_processor_py",
41           ] + PERFETTO_CONFIG.deps.pandas_py +
42           PERFETTO_CONFIG.deps.tp_vendor_py,
43)
44
45# GN target: //python:experimental_slice_breakdown_bin
46perfetto_py_binary(
47    name = "experimental_slice_breakdown_bin",
48    srcs = [
49        "tools/slice_breakdown.py",
50    ],
51    deps = [
52        ":experimental_slice_breakdown_lib",
53        ":trace_processor_py",
54    ] + PERFETTO_CONFIG.deps.pandas_py,
55    main = "tools/slice_breakdown.py",
56    python_version = "PY3",
57)
58
59# GN target: //python:trace_processor_table_generator
60perfetto_py_library(
61    name = "trace_processor_table_generator",
62    srcs = [
63        "generators/trace_processor_table/public.py",
64        "generators/trace_processor_table/serialize.py",
65        "generators/trace_processor_table/util.py",
66    ],
67)
68
69# GN target: //python:trace_processor_py_example
70perfetto_py_binary(
71    name = "trace_processor_py_example",
72    srcs = [
73        "example.py",
74    ],
75    deps = [
76        ":trace_processor_py",
77    ] + PERFETTO_CONFIG.deps.pandas_py,
78    main = "example.py",
79    python_version = "PY3",
80)
81
82# GN target: //python:experimental_slice_breakdown_lib
83perfetto_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",
91    ],
92)
93
94# GN target: //python:trace_processor_py
95perfetto_py_library(
96    name = "trace_processor_py",
97    visibility = [
98        "//visibility:public",
99    ],
100    deps = [
101        ":trace_processor_py_no_resolvers",
102    ] + PERFETTO_CONFIG.deps.tp_resolvers_py,
103)
104
105# GN target: //python:trace_processor_py_no_resolvers
106perfetto_py_library(
107    name = "trace_processor_py_no_resolvers",
108    srcs = [
109        "perfetto/trace_processor/__init__.py",
110        "perfetto/trace_processor/api.py",
111        "perfetto/trace_processor/http.py",
112        "perfetto/trace_processor/platform.py",
113        "perfetto/trace_processor/protos.py",
114        "perfetto/trace_processor/shell.py",
115    ],
116    visibility = [
117        "//visibility:public",
118    ],
119    data = [
120        PERFETTO_CONFIG.root + ":trace_processor_shell",
121        "perfetto/trace_processor/metrics.descriptor",
122        "perfetto/trace_processor/trace_processor.descriptor",
123    ],
124    deps = [
125               ":trace_uri_resolver",
126           ] + PERFETTO_CONFIG.deps.pandas_py +
127           PERFETTO_CONFIG.deps.protobuf_py +
128           PERFETTO_CONFIG.deps.tp_vendor_py,
129    tags = [
130        "avoid_dep",
131    ],
132)
133
134# GN target: //python:trace_uri_resolver
135perfetto_py_library(
136    name = "trace_uri_resolver",
137    srcs = [
138        "perfetto/trace_uri_resolver/__init__.py",
139        "perfetto/trace_uri_resolver/path.py",
140        "perfetto/trace_uri_resolver/registry.py",
141        "perfetto/trace_uri_resolver/resolver.py",
142        "perfetto/trace_uri_resolver/util.py",
143    ],
144)
145
146