Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +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. |
| 14 | |
| 15 | import("../gn/perfetto_python.gni") |
| 16 | |
Lalit Maganti | 220f7f6 | 2022-11-24 15:30:30 +0000 | [diff] [blame] | 17 | perfetto_py_library("trace_processor_table_generator") { |
Lalit Maganti | 167b93f | 2023-01-10 13:56:13 +0000 | [diff] [blame] | 18 | sources = [ |
| 19 | "generators/trace_processor_table/public.py", |
Lalit Maganti | 16117cc | 2022-12-21 15:33:21 +0000 | [diff] [blame] | 20 | "generators/trace_processor_table/serialize.py", |
Lalit Maganti | 167b93f | 2023-01-10 13:56:13 +0000 | [diff] [blame] | 21 | "generators/trace_processor_table/util.py", |
| 22 | ] |
Lalit Maganti | 220f7f6 | 2022-11-24 15:30:30 +0000 | [diff] [blame] | 23 | } |
| 24 | |
Anna Mayzner | b215390 | 2023-01-06 16:32:49 +0000 | [diff] [blame] | 25 | perfetto_py_library("trace_processor_stdlib_docs") { |
| 26 | sources = [ |
Anna Mayzner | 1a84bf0 | 2023-08-16 09:56:21 +0000 | [diff] [blame] | 27 | "generators/sql_processing/docs_extractor.py", |
| 28 | "generators/sql_processing/docs_parse.py", |
| 29 | "generators/sql_processing/utils.py", |
Anna Mayzner | b215390 | 2023-01-06 16:32:49 +0000 | [diff] [blame] | 30 | ] |
| 31 | } |
| 32 | |
Anna Mayzner | 55ed7b8 | 2023-01-11 15:52:32 +0000 | [diff] [blame] | 33 | perfetto_py_library("trace_processor_diff_tests") { |
| 34 | sources = [ |
| 35 | "generators/diff_tests/runner.py", |
| 36 | "generators/diff_tests/testing.py", |
| 37 | "generators/diff_tests/utils.py", |
| 38 | ] |
| 39 | } |
| 40 | |
Lalit Maganti | 88e64de | 2022-11-21 18:29:57 +0000 | [diff] [blame] | 41 | perfetto_py_binary("trace_processor_py_example") { |
| 42 | sources = [ "example.py" ] |
| 43 | deps = [ |
| 44 | ":trace_processor_py", |
| 45 | "../gn:pandas_py", |
| 46 | ] |
| 47 | main = "example.py" |
| 48 | } |
| 49 | |
| 50 | perfetto_py_library("trace_processor_py") { |
| 51 | sources = [ |
| 52 | "perfetto/trace_processor/__init__.py", |
| 53 | "perfetto/trace_processor/api.py", |
| 54 | "perfetto/trace_processor/http.py", |
| 55 | "perfetto/trace_processor/platform.py", |
| 56 | "perfetto/trace_processor/protos.py", |
| 57 | "perfetto/trace_processor/shell.py", |
| 58 | ] |
| 59 | data = [ |
| 60 | "perfetto/trace_processor/trace_processor.descriptor", |
| 61 | "perfetto/trace_processor/metrics.descriptor", |
| 62 | "..:trace_processor_shell", |
| 63 | ] |
| 64 | deps = [ |
| 65 | ":trace_uri_resolver", |
| 66 | "../gn:pandas_py", |
| 67 | "../gn:protobuf_py", |
| 68 | "../gn:tp_vendor_py", |
| 69 | ] |
| 70 | } |
| 71 | |
| 72 | perfetto_py_library("trace_uri_resolver") { |
| 73 | sources = [ |
| 74 | "perfetto/trace_uri_resolver/__init__.py", |
| 75 | "perfetto/trace_uri_resolver/path.py", |
| 76 | "perfetto/trace_uri_resolver/registry.py", |
| 77 | "perfetto/trace_uri_resolver/resolver.py", |
| 78 | "perfetto/trace_uri_resolver/util.py", |
| 79 | ] |
| 80 | } |
| 81 | |
| 82 | perfetto_py_library("experimental_slice_breakdown_lib") { |
| 83 | sources = [ |
| 84 | "perfetto/experimental/slice_breakdown/__init__.py", |
| 85 | "perfetto/experimental/slice_breakdown/breakdown.py", |
| 86 | ] |
| 87 | deps = [ ":trace_processor_py" ] |
| 88 | } |
| 89 | |
| 90 | perfetto_py_binary("experimental_slice_breakdown_bin") { |
| 91 | sources = [ "tools/slice_breakdown.py" ] |
| 92 | main = "tools/slice_breakdown.py" |
| 93 | deps = [ |
| 94 | ":experimental_slice_breakdown_lib", |
| 95 | ":trace_processor_py", |
| 96 | "../gn:pandas_py", |
| 97 | ] |
| 98 | } |
| 99 | |
| 100 | perfetto_py_library("batch_trace_processor") { |
| 101 | sources = [ |
| 102 | "perfetto/batch_trace_processor/__init__.py", |
| 103 | "perfetto/batch_trace_processor/api.py", |
| 104 | "perfetto/batch_trace_processor/platform.py", |
| 105 | ] |
| 106 | deps = [ |
| 107 | ":trace_processor_py", |
| 108 | "../gn:pandas_py", |
| 109 | "../gn:tp_vendor_py", |
| 110 | ] |
| 111 | } |