blob: 4700d1923cfa6001ecb4b8ae5efae0b354f1ade6 [file] [log] [blame]
Lalit Maganti4c76b4d2022-01-11 15:37:41 +00001# 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 Maganti88e64de2022-11-21 18:29:57 +000014#
15# This file is automatically generated by tools/gen_bazel. Do not edit.
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000016
17load("@perfetto_cfg//:perfetto_cfg.bzl", "PERFETTO_CONFIG")
18load(
19 "@perfetto//bazel:rules.bzl",
20 "perfetto_py_binary",
21 "perfetto_py_library",
22)
23
Lalit Magantic901a992022-01-11 18:55:07 +000024licenses(["notice"])
25
Lalit Maganti400b7fa2023-05-03 16:26:56 +010026package(default_visibility = [PERFETTO_CONFIG.root + ":__subpackages__"])
Lalit Magantiad4ad2e2022-01-11 19:23:05 +000027
Lalit Maganti88e64de2022-11-21 18:29:57 +000028# GN target: //python:batch_trace_processor
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000029perfetto_py_library(
Lalit Maganti88e64de2022-11-21 18:29:57 +000030 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 Maganti917b8442022-01-13 19:19:41 +000035 ],
Lalit Magantif18b6162022-11-23 18:56:35 +000036 visibility = [
37 "//visibility:public",
38 ],
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000039 deps = [
Lalit Maganti88e64de2022-11-21 18:29:57 +000040 ":trace_processor_py",
41 ] + PERFETTO_CONFIG.deps.pandas_py +
42 PERFETTO_CONFIG.deps.tp_vendor_py,
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000043)
44
Lalit Maganti88e64de2022-11-21 18:29:57 +000045# GN target: //python:experimental_slice_breakdown_bin
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000046perfetto_py_binary(
47 name = "experimental_slice_breakdown_bin",
Lalit Maganti88e64de2022-11-21 18:29:57 +000048 srcs = [
49 "tools/slice_breakdown.py",
50 ],
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000051 deps = [
52 ":experimental_slice_breakdown_lib",
53 ":trace_processor_py",
54 ] + PERFETTO_CONFIG.deps.pandas_py,
Lalit Maganti88e64de2022-11-21 18:29:57 +000055 main = "tools/slice_breakdown.py",
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000056 python_version = "PY3",
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000057)
58
Lalit Maganti220f7f62022-11-24 15:30:30 +000059# 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",
Lalit Maganti16117cc2022-12-21 15:33:21 +000064 "generators/trace_processor_table/serialize.py",
Lalit Maganti167b93f2023-01-10 13:56:13 +000065 "generators/trace_processor_table/util.py",
Lalit Maganti220f7f62022-11-24 15:30:30 +000066 ],
67)
68
Lalit Maganti88e64de2022-11-21 18:29:57 +000069# GN target: //python:trace_processor_py_example
70perfetto_py_binary(
71 name = "trace_processor_py_example",
72 srcs = [
73 "example.py",
74 ],
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000075 deps = [
76 ":trace_processor_py",
Lalit Maganti88e64de2022-11-21 18:29:57 +000077 ] + 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",
Lalit Maganti4c76b4d2022-01-11 15:37:41 +000091 ],
92)
93
Lalit Maganti88e64de2022-11-21 18:29:57 +000094# GN target: //python:trace_processor_py
95perfetto_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 Magantif18b6162022-11-23 18:56:35 +0000105 visibility = [
106 "//visibility:public",
107 ],
Lalit Maganti88e64de2022-11-21 18:29:57 +0000108 data = [
109 PERFETTO_CONFIG.root + ":trace_processor_shell",
110 "perfetto/trace_processor/metrics.descriptor",
111 "perfetto/trace_processor/trace_processor.descriptor",
112 ],
Lalit Maganti4c76b4d2022-01-11 15:37:41 +0000113 deps = [
Lalit Maganti88e64de2022-11-21 18:29:57 +0000114 ":trace_uri_resolver",
115 ] + PERFETTO_CONFIG.deps.pandas_py +
116 PERFETTO_CONFIG.deps.protobuf_py +
117 PERFETTO_CONFIG.deps.tp_vendor_py,
Lalit Maganti4c76b4d2022-01-11 15:37:41 +0000118)
Lalit Maganti88e64de2022-11-21 18:29:57 +0000119
120# GN target: //python:trace_uri_resolver
121perfetto_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