| # Copyright (C) 2021 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/perfetto.gni") |
| |
| source_set("common") { |
| sources = [ |
| "address_range.h", |
| "args_tracker.cc", |
| "args_tracker.h", |
| "args_translation_table.cc", |
| "args_translation_table.h", |
| "async_track_set_tracker.cc", |
| "async_track_set_tracker.h", |
| "chunked_trace_reader.h", |
| "clock_converter.cc", |
| "clock_converter.h", |
| "clock_tracker.cc", |
| "clock_tracker.h", |
| "cpu_tracker.cc", |
| "cpu_tracker.h", |
| "create_mapping_params.h", |
| "deobfuscation_mapping_table.cc", |
| "deobfuscation_mapping_table.h", |
| "event_tracker.cc", |
| "event_tracker.h", |
| "flow_tracker.cc", |
| "flow_tracker.h", |
| "global_args_tracker.cc", |
| "global_args_tracker.h", |
| "jit_cache.cc", |
| "jit_cache.h", |
| "legacy_v8_cpu_profile_tracker.cc", |
| "legacy_v8_cpu_profile_tracker.h", |
| "machine_tracker.cc", |
| "machine_tracker.h", |
| "mapping_tracker.cc", |
| "mapping_tracker.h", |
| "metadata_tracker.cc", |
| "metadata_tracker.h", |
| "process_track_translation_table.cc", |
| "process_track_translation_table.h", |
| "process_tracker.cc", |
| "process_tracker.h", |
| "sched_event_state.h", |
| "sched_event_tracker.cc", |
| "sched_event_tracker.h", |
| "slice_tracker.cc", |
| "slice_tracker.h", |
| "slice_translation_table.cc", |
| "slice_translation_table.h", |
| "stack_profile_tracker.cc", |
| "stack_profile_tracker.h", |
| "system_info_tracker.cc", |
| "system_info_tracker.h", |
| "thread_state_tracker.cc", |
| "thread_state_tracker.h", |
| "trace_file_tracker.cc", |
| "trace_file_tracker.h", |
| "trace_parser.cc", |
| "track_tracker.cc", |
| "track_tracker.h", |
| "tracks.h", |
| "virtual_memory_mapping.cc", |
| "virtual_memory_mapping.h", |
| ] |
| public_deps = [ |
| ":trace_parser_hdr", |
| "../../util:proto_to_args_parser", |
| "../../util:protozero_to_text", |
| ] |
| deps = [ |
| ":parser_types", |
| "../../../../gn:default_deps", |
| "../../../../include/perfetto/trace_processor", |
| "../../../../include/perfetto/trace_processor:basic_types", |
| "../../../../protos/perfetto/common:zero", |
| "../../../../protos/perfetto/trace:zero", |
| "../../../../protos/perfetto/trace/profiling:zero", |
| "../../../base", |
| "../../db:minimal", |
| "../../storage", |
| "../../tables:tables", |
| "../../types", |
| "../../util:build_id", |
| "../../util:profiler_util", |
| "../../util:trace_type", |
| "../fuchsia:fuchsia_record", |
| "../systrace:systrace_line", |
| ] |
| } |
| |
| source_set("trace_parser_hdr") { |
| sources = [ "trace_parser.h" ] |
| deps = [ "../../../../gn:default_deps" ] |
| } |
| |
| source_set("parser_types") { |
| sources = [ "parser_types.h" ] |
| deps = [ |
| "../../../../gn:default_deps", |
| "../../../../include/perfetto/trace_processor:storage", |
| "../../containers", |
| "../proto:packet_sequence_state_generation_hdr", |
| ] |
| } |
| |
| source_set("unittests") { |
| sources = [ |
| "address_range_unittest.cc", |
| "args_translation_table_unittest.cc", |
| "async_track_set_tracker_unittest.cc", |
| "clock_converter_unittest.cc", |
| "clock_tracker_unittest.cc", |
| "deobfuscation_mapping_table_unittest.cc", |
| "event_tracker_unittest.cc", |
| "flow_tracker_unittest.cc", |
| "process_track_translation_table_unittest.cc", |
| "process_tracker_unittest.cc", |
| "slice_tracker_unittest.cc", |
| "slice_translation_table_unittest.cc", |
| "thread_state_tracker_unittest.cc", |
| ] |
| testonly = true |
| deps = [ |
| ":common", |
| "../../../../gn:default_deps", |
| "../../../../gn:gtest_and_gmock", |
| "../../../../protos/perfetto/common:zero", |
| "../../../../protos/perfetto/trace:zero", |
| "../../../base", |
| "../../storage", |
| "../../tables", |
| "../../types", |
| ] |
| } |