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 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 ], 105 visibility = [ 106 "//visibility:public", 107 ], 108 data = [ 109 PERFETTO_CONFIG.root + ":trace_processor_shell", 110 "perfetto/trace_processor/metrics.descriptor", 111 "perfetto/trace_processor/trace_processor.descriptor", 112 ], 113 deps = [ 114 ":trace_uri_resolver", 115 ] + PERFETTO_CONFIG.deps.pandas_py + 116 PERFETTO_CONFIG.deps.protobuf_py + 117 PERFETTO_CONFIG.deps.tp_vendor_py, 118) 119 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 132