| # Copyright (C) 2023 The Android Open Source Project |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| import("../../../../gn/test.gni") |
| |
| source_set("record") { |
| sources = [ |
| "perf_event.h", |
| "perf_event_attr.cc", |
| "perf_event_attr.h", |
| "perf_session.cc", |
| "perf_session.h", |
| "reader.h", |
| "record.h", |
| ] |
| deps = [ |
| "../../../../gn:default_deps", |
| "../../../../include/perfetto/ext/base:base", |
| "../../../../include/perfetto/trace_processor:storage", |
| "../../../../include/perfetto/trace_processor:trace_processor", |
| "../../../../protos/perfetto/trace/profiling:zero", |
| "../../storage", |
| "../../tables:tables_python", |
| "../../types", |
| "../common:parser_types", |
| ] |
| } |
| source_set("perf") { |
| sources = [ |
| "attrs_section_reader.cc", |
| "attrs_section_reader.h", |
| "perf_data_parser.cc", |
| "perf_data_parser.h", |
| "perf_data_tokenizer.cc", |
| "perf_data_tokenizer.h", |
| "perf_data_tracker.cc", |
| "perf_data_tracker.h", |
| "perf_file.h", |
| "reader.h", |
| ] |
| public_deps = [ ":record" ] |
| deps = [ |
| "../../../../gn:default_deps", |
| "../../../../protos/perfetto/trace:zero", |
| "../../../../protos/perfetto/trace/profiling:zero", |
| "../../sorter", |
| "../../storage", |
| "../../tables:tables_python", |
| "../../types", |
| "../../util:file_buffer", |
| "../common", |
| "../common:parser_types", |
| "../proto:minimal", |
| ] |
| } |
| |
| perfetto_unittest_source_set("unittests") { |
| testonly = true |
| sources = [ |
| "perf_data_tracker_unittest.cc", |
| "perf_session_unittest.cc", |
| "reader_unittest.cc", |
| ] |
| deps = [ |
| ":perf", |
| "../../../../gn:default_deps", |
| "../../../../gn:gtest_and_gmock", |
| "../../../../protos/perfetto/trace/profiling:zero", |
| "../../../base", |
| "../../importers/common", |
| ] |
| } |